If False then (another formula)

Kirstym1918

New Member
Joined
Dec 17, 2017
Messages
45
Hi all,

How do I add to this formula =IF(COUNTIF(Monday!$G$6:$I$25,$B2)>0,"W","")

It looks in the Monday range for a match with B2 then returns "W" but if false I would like it to carry out another formula to find a match but return R as per below, any idea how I can do this.
=IF(COUNTIF(Monday!$T$6:$U$31,$B2)>0,"R","")

Many Thanks
 
Hi all,

How do I add to this formula =IF(COUNTIF(Monday!$G$6:$I$25,$B2)>0,"W","")

It looks in the Monday range for a match with B2 then returns "W" but if false I would like it to carry out another formula to find a match but return R as per below, any idea how I can do this.
=IF(COUNTIF(Monday!$T$6:$U$31,$B2)>0,"R","")

Many Thanks

Those two formulas are testing the same condition.
If B2 is in the Monday! range you want "W"
What do you want if B2 is not in the Monday! range?
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
If it is returning a Space then it is not finding B2 in either range, are you certain it appears, if so what is in B2?
 
Upvote 0
Those two formulas are testing the same condition.
If B2 is in the Monday! range you want "W"
What do you want if B2 is not in the Monday! range?

Hi Mike,

Basically the Monday tab is a plan with employee names on, if their name is in Monday!G6:I25 then I want it to return W (working), If they are not working they will be in the Monday!T6:U31 range which would return R (Rest Day)

Regards
 
Upvote 0
If you think B2 does appear in 1 of the ranges, then i would suggest that what is in B2 isn't exactly the same as what appears in the 2 ranges!
Are there any spaces, extra characters etc?

You can check by entering =B2=Monday!??
change ?? to be the cell that you believe matches.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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