Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rubix
 
Posts: n/a
Default IF formula question

My question is, I want to add "if" E2 is blank leave R2 blank in
addition to formula below.

This Formula is in R2 cell.

=IF(P2<1,"A",IF(P21,"B",IF(P2<2,"G")))

Thanks,
Rube
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove
 
Posts: n/a
Default IF formula question

"Rubix" wrote...
My question is, I want to add "if" E2 is blank leave R2 blank in
addition to formula below.

This Formula is in R2 cell.

=IF(P2<1,"A",IF(P21,"B",IF(P2<2,"G")))


E2? Do you mean P2?

The formula above would only return "G" when P2=1. If that's what you want,
it'd be LOTS clearer to write it as

=IF(P2<1,"A",IF(P21,"B","G"))

Since P2<1, P21 and P2=1 are exhaustive, the only place you could add
another condition would be as the first test.

=IF(ISBLANK(E2),"",IF(P2<1,"A",IF(P21,"B","G")))


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default IF formula question

"Rubix" wrote:
My question is, I want to add "if" E2 is blank
leave R2 blank in addition to formula below.
This Formula is in R2 cell.
=IF(P2<1,"A",IF(P21,"B",IF(P2<2,"G")))


It is not clear which conditions you want to give
precedence to; that is, which conditions override
the others. The following are two possibilities:

1. "E2 is blank" overrides all other conditions

=IF(E2="","",IF(P2<1,"A",IF(P21,"B",IF(P2<2,"G")) ))

2. All other conditions override "E2 is blank"

=IF(P2<1,"A",IF(P21,"B",IF(P2<2,"G",IF(E2="","")) ))

Note: I have omitted the false-value part of the last IF()
function, just as you did. In some contexts in Excel,
that is the right thing to do. But normally, I think it is
best to have a false-value part
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rubix
 
Posts: n/a
Default IF formula question

Thanks!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Question Marcus Feldmore Excel Worksheet Functions 1 November 11th 05 03:47 PM
I have a question regarding countif formula. Fahad Farid Ansari Excel Worksheet Functions 6 October 1st 05 11:57 PM
formula (IF) question Drew Halevy Excel Worksheet Functions 7 February 2nd 05 07:19 PM
Formula Question JDT Excel Discussion (Misc queries) 2 January 30th 05 01:17 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"