#1   Report Post  
Posted to microsoft.public.excel.misc
D D is offline
external usenet poster
 
Posts: 121
Default IF statement error

I need to take the sum value of several cells and then take another cell and
multiply it. Then with a nested IF, do the same thing with the Sum of
different cells(except one is the same). Keep getting #VALUE! returned.
Here is the formula I am trying:
=IF(SUM(F11,J11,L11)=105,AB11*0.1,0),IF(SUM(F11,G 11,Q11)=130,AB11*0.01,0)
What isn't working here?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default IF statement error

You're getting errors because Excel doesn't know what you're trying to do.
Take a look at your first IF clause. IF statements have the IF-THEN-ELSE
logic structure, and your first IF clause contains "IF the SUM of these three
cells is greater than or equal to 105, THEN AB*.1, ELSE 0" After that you
have more IF clauses, but you've used up your IF THEN ELSE conditions.

Nested IF functions have the structu IF, THEN, ELSE IF, THEN, ELSE IF,
THEN, ELSE

So you need to do something like:
=IF(SUM(F11,J11,L11)=105,AB11*0.1,IF(SUM(F11,G11, Q11)=130,AB11*0.01,0))

Hope that's clear.

Dave

--
Brevity is the soul of wit.


"D" wrote:

I need to take the sum value of several cells and then take another cell and
multiply it. Then with a nested IF, do the same thing with the Sum of
different cells(except one is the same). Keep getting #VALUE! returned.
Here is the formula I am trying:
=IF(SUM(F11,J11,L11)=105,AB11*0.1,0),IF(SUM(F11,G 11,Q11)=130,AB11*0.01,0)
What isn't working here?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default IF statement error

Try this amendment:

=IF(SUM(F11,J11,L11)=105,AB11*0.1,IF(SUM(F11,G11, Q11)=130,AB11*0.01,0))

Hope this helps.

Pete

D wrote:
I need to take the sum value of several cells and then take another cell and
multiply it. Then with a nested IF, do the same thing with the Sum of
different cells(except one is the same). Keep getting #VALUE! returned.
Here is the formula I am trying:
=IF(SUM(F11,J11,L11)=105,AB11*0.1,0),IF(SUM(F11,G 11,Q11)=130,AB11*0.01,0)
What isn't working here?


  #4   Report Post  
Posted to microsoft.public.excel.misc
D D is offline
external usenet poster
 
Posts: 121
Default IF statement error

Thanks, That was awesome. I ended the first IF statement and shouldn't have

"Dave F" wrote:

You're getting errors because Excel doesn't know what you're trying to do.
Take a look at your first IF clause. IF statements have the IF-THEN-ELSE
logic structure, and your first IF clause contains "IF the SUM of these three
cells is greater than or equal to 105, THEN AB*.1, ELSE 0" After that you
have more IF clauses, but you've used up your IF THEN ELSE conditions.

Nested IF functions have the structu IF, THEN, ELSE IF, THEN, ELSE IF,
THEN, ELSE

So you need to do something like:
=IF(SUM(F11,J11,L11)=105,AB11*0.1,IF(SUM(F11,G11, Q11)=130,AB11*0.01,0))

Hope that's clear.

Dave

--
Brevity is the soul of wit.


"D" wrote:

I need to take the sum value of several cells and then take another cell and
multiply it. Then with a nested IF, do the same thing with the Sum of
different cells(except one is the same). Keep getting #VALUE! returned.
Here is the formula I am trying:
=IF(SUM(F11,J11,L11)=105,AB11*0.1,0),IF(SUM(F11,G 11,Q11)=130,AB11*0.01,0)
What isn't working here?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default IF statement error

Its not clear exactly what you want to do.

Do either of these work for you:

=IF(SUM(F11,J11,L11)=105,AB11*0.1,0)+IF(SUM(F11,G 11,Q11)=130,AB11*0.01,0)

=IF(SUM(F11,J11,L11)=105,AB11*0.1,IF(SUM(F11,G11, Q11)=130,AB11*0.01,0))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"D" wrote in message
...
I need to take the sum value of several cells and then take another cell and
multiply it. Then with a nested IF, do the same thing with the Sum of
different cells(except one is the same). Keep getting #VALUE! returned.
Here is the formula I am trying:
=IF(SUM(F11,J11,L11)=105,AB11*0.1,0),IF(SUM(F11,G 11,Q11)=130,AB11*0.01,0)
What isn't working here?


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
On Error Resume Next (when next statement is Do Loop ...) EagleOne Excel Discussion (Misc queries) 2 September 26th 06 03:26 PM
error message when opening excel 2000 Lem Excel Discussion (Misc queries) 3 August 31st 06 11:06 PM
XL - Oracle connection Error parthi4u Excel Discussion (Misc queries) 0 September 14th 05 08:45 PM
Error on second pass of loop. Rob Excel Discussion (Misc queries) 1 September 9th 05 07:26 PM
Problem Opening an Excel File MSO9.DLL Error Mash23 Links and Linking in Excel 0 August 24th 05 03:21 PM


All times are GMT +1. The time now is 05:36 PM.

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

About Us

"It's about Microsoft Excel"