ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Whats wrong with this? (https://www.excelbanter.com/excel-discussion-misc-queries/64847-whats-wrong.html)

LucasBuck

Whats wrong with this?
 

=IF('M ORQ Rec'!B2=0,0,IF('M ORQ Rec'!B2=12,20,IF('M ORQ
Rec'!B2=10,18,IF('M ORQ Rec'!B2=7,16,IF('M ORQ
Rec'!B2<=6,15,"N")))))

I want it to display N if there is text in B2, but it always shows 20
instead. Thanks


--
LucasBuck
------------------------------------------------------------------------
LucasBuck's Profile: http://www.excelforum.com/member.php...o&userid=19710
View this thread: http://www.excelforum.com/showthread...hreadid=500793


pinmaster

Whats wrong with this?
 
Try this:

=IF(ISTEXT(B2),"N",IF(B2=0,0,IF(B2=12,20,IF(B2=1 0,18,IF(B2=7,16,IF(B2<=6,15,0))))))

HTH
JG

"LucasBuck" wrote:


=IF('M ORQ Rec'!B2=0,0,IF('M ORQ Rec'!B2=12,20,IF('M ORQ
Rec'!B2=10,18,IF('M ORQ Rec'!B2=7,16,IF('M ORQ
Rec'!B2<=6,15,"N")))))

I want it to display N if there is text in B2, but it always shows 20
instead. Thanks


--
LucasBuck
------------------------------------------------------------------------
LucasBuck's Profile: http://www.excelforum.com/member.php...o&userid=19710
View this thread: http://www.excelforum.com/showthread...hreadid=500793



Elkar

Whats wrong with this?
 
You could rewrite your equation like this:

=if(istext('M ORQ Rec'!B2),"N",IF('M ORQ Rec'!B2=0,0,IF('M ORQ
Rec'!B2=12,20,IF('M ORQ Rec'!B2=10,18,IF('M ORQ Rec'!B2=7,16,IF('M ORQ
Rec'!B2<=6,15))))))

HTH,
Elkar



"LucasBuck" wrote:


=IF('M ORQ Rec'!B2=0,0,IF('M ORQ Rec'!B2=12,20,IF('M ORQ
Rec'!B2=10,18,IF('M ORQ Rec'!B2=7,16,IF('M ORQ
Rec'!B2<=6,15,"N")))))

I want it to display N if there is text in B2, but it always shows 20
instead. Thanks


--
LucasBuck
------------------------------------------------------------------------
LucasBuck's Profile: http://www.excelforum.com/member.php...o&userid=19710
View this thread: http://www.excelforum.com/showthread...hreadid=500793



LucasBuck

Whats wrong with this?
 

Thank you both very much


--
LucasBuck
------------------------------------------------------------------------
LucasBuck's Profile: http://www.excelforum.com/member.php...o&userid=19710
View this thread: http://www.excelforum.com/showthread...hreadid=500793



All times are GMT +1. The time now is 01:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com