IF, Vlookup and N/A & text issues

SB1976

New Member
Joined
Sep 8, 2016
Messages
4
Hi,

I would like a formula to report data in cell M11. I'd like to start by looking up data in cell E11 and if it is less than 3000 to report it as "NT", if it is greater than 3000, I'd like cell H11 to be looked at and checked against a list of codes. If one of these codes appears I'd like "NT" to be reported. If the code doesn't appear I'd like "T" to be reported.

If anyone could help it would be great!

[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65"]Z1220[/TD]
[TD="class: xl65, width: 64"]NT[/TD]
[/TR]
[TR]
[TD="class: xl65"]Z1230[/TD]
[TD="class: xl65"]NT[/TD]
[/TR]
[TR]
[TD="class: xl65"]Z2000[/TD]
[TD="class: xl65"]NT[/TD]
[/TR]
[TR]
[TD="class: xl65"]Z2002[/TD]
[TD="class: xl65"]NT[/TD]
[/TR]
[TR]
[TD="class: xl65"]Z3000[/TD]
[TD="class: xl65"]NT[/TD]
[/TR]
[TR]
[TD="class: xl65"]Z3010[/TD]
[TD="class: xl65"]NT[/TD]
[/TR]
[TR]
[TD="class: xl65"]Z3100[/TD]
[TD="class: xl65"]NT[/TD]
[/TR]
[TR]
[TD="class: xl65"]Z3200[/TD]
[TD="class: xl65"]NT[/TD]
[/TR]
[TR]
[TD="class: xl65"]Z3200[/TD]
[TD="class: xl65"]NT[/TD]
[/TR]
[TR]
[TD="class: xl65"]Z4020[/TD]
[TD="class: xl65"]NT[/TD]
[/TR]
[TR]
[TD="class: xl65"]Z4110[/TD]
[TD="class: xl65"]NT[/TD]
[/TR]
</tbody>[/TABLE]

=IF(E11<3000,"NT",((VLOOKUP(H11,List!$L$2:$M$12,2,"T"))))
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I've just done this too....and it seems to work!

Thank you too....

=IF(E7<3000,"NT",(IFERROR(VLOOKUP(H7,List!$L$2:$M$12,2,FALSE),"T")))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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