Extracting and replacing - whats a girl to do?!

Occasional Contributor

Hi there, having a hard time find formulas for my issue. 


I need a formula that will search the entire "Stock Codes" column, and replace new information in the "Available" column...Tasks include:

1. Any row in the "Stock Codes" column that has the letter R in it will be replaced with RF in the "Available" column...
2. Any row in the "Stock Codes" column that DOESN'T have the letter R in it will be replaced with RM in the "Available" column...

Is there one formula that can do both items listed?

This girl can't figure it out, any help would be appreciated. xo!





 Stock Spreadsheet.jpeg




12 Replies


place below formula adjacent to the column of data (column B) and copy down..

Thank you much for responding, I made some edits to my question right after you responded...I forgot one item...

my reply seems to be what you needed...

Just tried it, its really close, the only issue is that the number is displayed in the column B, the letters are correct though. Stock Spreadsheet column B.jpeg

pls see attached.

hope this is what you needed.


I see the same on my end, I just need the RF and RM in column B, I dont need to keep the numbers in column B....you are so close my friend

Thank you so much for helping me

sorry I send the wrong file - but have sent you the correct one

attached is the revised file..

I see it!!! thats it, you're amazing! Spent hours trying to figure it out....ughh

Thanks so much! 



I misinterpret your first OP, at least we got it.
glad to help..
there is another formula (if you're interested)
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies