=IF Formula

Jackfrost123455

New Member
Joined
Sep 18, 2015
Messages
1
I've looked everywhere and can't seem to find an answer to this. I have an =IF formula I'm trying to use, but it doesn't work. I would like to put the following formula in cell S5.

=IF(C5:P5="x","","x")

For some reason it won't allow me to do this formula for multiple cells, C5:P5. It will only let me use this formula, =IF(C5="x","","x")

My desire with this formula, is if there is an "x" in a cell in the range C5:P5, then there will be no "x" in cell S5. And if there is no "x" in cell range C5:P5, then there will be an "x" in cell S5.

Can anyone help me?
 

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.
In cell S5 try: =IF(ISERROR(MATCH("x",C5:P5,0)),"x","")

The match function will look for an exact match in that range of the "x" value, and if there is no "x" then the match function returns an error so the statement says, if there is an error of the match function than put an "x" in cell S5 otherwise leave blank.

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,346
Members
452,638
Latest member
Oluwabukunmi

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