Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Autosum results of multiple if statements?

I used multiple IF statements to return a number from 0 to 8. I now need to
sum the results of the returned numbers in a row. When I use =Sum(A7:J7) it
returns 0. How do I get a total on this Row?

Copy of statement
=IF(B3=$B$2+1,"1",IF(B3=$B$2,"2",IF(B3=$B$2-1,"4",IF(B3=$B$2-2,"8","0"))))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Autosum results of multiple if statements?

Your formula isn't returning numbers....
it's returning *letters* that look like numbers
=IF(B3=$B$2+1,"1",IF(B3=$B$2,"2",IF(B3=$B$2-1,"4",IF(B3=$B$2-2,"8","0"))))

Putting quotes around anything turns it into text.

Try this:
=IF(B3=$B$2+1,1,IF(B3=$B$2,2,IF(B3=$B$2-1,4,IF(B3=$B$2-2,8,0))))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Golf Nut" wrote:

I used multiple IF statements to return a number from 0 to 8. I now need to
sum the results of the returned numbers in a row. When I use =Sum(A7:J7) it
returns 0. How do I get a total on this Row?

Copy of statement
=IF(B3=$B$2+1,"1",IF(B3=$B$2,"2",IF(B3=$B$2-1,"4",IF(B3=$B$2-2,"8","0"))))

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Autosum results of multiple if statements?

Remove the quotes from your numbers, since that makes them Text, and Sum()
ignores Text.

=IF(B3=$B$2+1,1,IF(B3=$B$2,2,IF(B3=$B$2-1,4,IF(B3=$B$2-2,8,0))))

OR,

Change your totaling formula to:

=A7+B7+C7+D7+E7+F7+G7+H7+I7+J7

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Golf Nut" <Golf wrote in message
...
I used multiple IF statements to return a number from 0 to 8. I now need
to
sum the results of the returned numbers in a row. When I use =Sum(A7:J7)
it
returns 0. How do I get a total on this Row?

Copy of statement
=IF(B3=$B$2+1,"1",IF(B3=$B$2,"2",IF(B3=$B$2-1,"4",IF(B3=$B$2-2,"8","0"))))


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
lookup formulas to obtain multiple results Scott Zane Excel Worksheet Functions 6 July 10th 06 04:28 AM
if statements depending on multiple VLOOKUP functions njuneardave Excel Discussion (Misc queries) 1 June 21st 06 04:33 PM
Add multiple vlookup results Dawn Excel Worksheet Functions 6 June 20th 06 10:06 PM
combining IF and AND statements for multiple columns cubsfan Excel Discussion (Misc queries) 2 April 7th 06 05:25 PM
multiple nested IF statements jazzydwit Excel Worksheet Functions 4 December 29th 05 05:23 PM


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