Inserting a value in a cell based off whether another cell has a letter in a string of numbers

llglover

New Member
Joined
Nov 9, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
I am building a spreadsheet that tracks military orders. Each order has a string of numbers that identify it and when that order is changed a letter is put into that string of numbers. Is there a way to insert a value in another cell if that letter exist in the sting of numbers? Example being below where I would like to have "Original", "Change" or "Delete" automatically populate based on whether no Letter, "G" or "R" exist in that cell. Thank you for your help in this!
55-1234-00595Original
55-1234-00595G01Change
55-1234-00595R00Delete
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(ISNUMBER(SEARCH("R",A2)),"Delete",IF(ISNUMBER(SEARCH("G",A2)),"Change","Original"))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,842
Members
449,193
Latest member
MikeVol

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top