Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF Statements using BUT - is there such a thing


I am trying to use an IF statement involving two arguments - IF Cell XX
is = "blank" then bring back the SUM of Cells XX-XX BUT IF Cell XX
[this is the same cell as the first reference] is = "non blank" then
bring back the SUM of Cells YY-YY. Is this possible? If so how would
I do this?

Thank you


--
esulpher
------------------------------------------------------------------------
esulpher's Profile: http://www.excelforum.com/member.php...o&userid=36606
View this thread: http://www.excelforum.com/showthread...hreadid=563477

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default IF Statements using BUT - is there such a thing

Well, cell XX is either blank or it's not, so:

=IF(XX="",SUM(YY:YY),SUM(ZZ:ZZ))

Regards

Trevor


"esulpher" wrote in
message ...

I am trying to use an IF statement involving two arguments - IF Cell XX
is = "blank" then bring back the SUM of Cells XX-XX BUT IF Cell XX
[this is the same cell as the first reference] is = "non blank" then
bring back the SUM of Cells YY-YY. Is this possible? If so how would
I do this?

Thank you


--
esulpher
------------------------------------------------------------------------
esulpher's Profile:
http://www.excelforum.com/member.php...o&userid=36606
View this thread: http://www.excelforum.com/showthread...hreadid=563477



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default IF Statements using BUT - is there such a thing

Cell XX can only assume two values, "blank" or "non blank" therefore you
only need to test for one condition.

=IF(XX="",SUM(XX:XX),SUM(YY:YY))

--
Carlos

"esulpher" wrote in
message ...

I am trying to use an IF statement involving two arguments - IF Cell XX
is = "blank" then bring back the SUM of Cells XX-XX BUT IF Cell XX
[this is the same cell as the first reference] is = "non blank" then
bring back the SUM of Cells YY-YY. Is this possible? If so how would
I do this?

Thank you


--
esulpher
------------------------------------------------------------------------
esulpher's Profile:

http://www.excelforum.com/member.php...o&userid=36606
View this thread: http://www.excelforum.com/showthread...hreadid=563477



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF Statements using BUT - is there such a thing


Thank you Trevor and Carlos. That does make sense....I've been at this
worksheet for days and I'm starting to redo what I've already
redone...yikes!

Cheers...E


--
esulpher
------------------------------------------------------------------------
esulpher's Profile: http://www.excelforum.com/member.php...o&userid=36606
View this thread: http://www.excelforum.com/showthread...hreadid=563477

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
UDFunctions and nested If-the-else statements JDB Excel Worksheet Functions 1 January 25th 06 03:29 PM
Linking two IF statements together trixma Excel Discussion (Misc queries) 2 September 29th 05 06:07 AM
Better Way to Code IF Statements? TheRobsterUK Excel Discussion (Misc queries) 4 July 18th 05 03:37 PM
Logical ELSE statements Ruth Excel Discussion (Misc queries) 2 June 23rd 05 03:23 PM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM


All times are GMT +1. The time now is 06:15 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"