Multiple IF formula Question

jlyn123

New Member
Joined
Jan 24, 2018
Messages
45
Office Version
  1. 2016
Hello,

I am trying to get this IF statement to work but it wont validate.

=IF(W32>0.01,ROUND(((P32*W32*R32/100)+SUM(X32:AA32)*R32*P32/100),0),IF(U32>0.01,ROUND(((P32*U32*R32/100)+SUM(X32:AA32)*R32*P32/100),0),IF(T32>0.01,ROUND(((P32*T32/100)+SUM(X32:Z32))*R32/100,0)))+(Q32*AA32*R32/100)+(Q32*AB32*R32/100)+(Q32*AC32*R32/100)+(Q32*AD32*R32/100)+(Q32*V32*R32/100))

I am trying to get these IF statements to not double up but it looks like it is when I put an amount on cell P. I just want it to calculate the amount one time based off if there is a value in W or U or T. It seems to be doubling up and I dont know why am I doubling up somewhere? The circled amount below should be based off the actual amount which is lower then estimated so the premium balance should be less.

1673383413701.png
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
the If breaksdown to
is the T32 formula correct ?

=IF(W32>0.01,

ROUND(((P32*W32*R32/100)+SUM(X32:AA32)*R32*P32/100),0),

IF(U32>0.01,

ROUND(((P32*U32*R32/100)+SUM(X32:AA32)*R32*P32/100),0),

IF(T32>0.01,

this does not look correct, no number to round up to - not sure why i get a 0 when all blank........
ROUND(((P32*T32/100)+SUM(X32:Z32))*R32/100,0)))+(Q32*AA32*R32/100)+(Q32*AB32*R32/100)+(Q32*AC32*R32/100)+(Q32*AD32*R32/100)+(Q32*V32*R32/100))

and NO FALSE , although i get a zero when all cells are blank -

it works left to right

so if W32 is not > 0.01 then checks U32, The T32 -
BUT if all 3 fail , then you will get
FALSE

When is it doubling up
when you get to T32 ?

ALSO the calculation does not work left to right - but excel will do the * before the +, so the () position are important , not sure of that maybe the issue

Not sure from the image
Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,696
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top