=IF(Lookup Problem

artistry

New Member
Joined
Apr 24, 2011
Messages
5
hi guys,

i'm new on this forum and new to excel formulas as well, i've been trying to make this simple worksheet using a =IF(Lookup formula to display when specific people are working or are on their days off.

by changing the days specified on cell C8 to display the persons name if they're working that day, or the text "day off" if they aren't.

but somehow whenever i type in "thu" or "fri" most of the results displayed are showing up as "#N/A"

i'm going to include here the actual file is anyone is able to help me, as i can't seem to work it out for the life of me. (download)

by the way, the formula i'm using is:

=IF(LOOKUP($C$8;E9:K9)=$C$8;"day off";E9)

thank you in advance
 
or modify your formula as:
=IF(ISERROR(IF(LOOKUP($C$8,E9:K9)=$C$8,"day off",D9)),"",(IF(LOOKUP($C$8,E9:K9)=$C$8,"day off",D9)))

it is sort of error trapping , if n/a not desired
 
Upvote 0

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

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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