"IF" formula help

Benk87

New Member
Joined
Mar 6, 2015
Messages
7
Hi All,


I think I'm looking for an 'IF' formula which achieves the following "IF" cell1 contains "200"or"300" populate cell2 with the same value.

Thanks in advance.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi and welcome to the board:

In cell 2 try:

=IF(OR(cell1=200;cell1=300),cell1)

and i don't know what you need if it's not but if you want a blank:

=IF(OR(cell1=200;cell1=300),cell1,"")
 
Upvote 0
Thanks for your warm welcome guys, the comments are much appreciated.

I think we're on the right track, however I should clarify that "cell1" will have other values in besides "200" / "300" so the formula will need a 'SEARCH' incorporated which picks out the "200" or "300" from the string and then returns "200" or "300" in cell2 respectively. I hope this makes sense.

Thanks again guys
 
Upvote 0
Thanks for taking a look.

An example of cell1 data is "xxxx200" or "xxxx300" or "xxxx"
so I think I'm looking for an 'IF' formula which does the following:

IF cell1 contains a string of "200" or "300", populate cell2 with "200" or "300" (whichever is found).
However If cell1 does not contain any of the above strings, populate "cell2" as 0
 
Upvote 0

Forum statistics

Threads
1,214,544
Messages
6,120,126
Members
448,947
Latest member
test111

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