How to Nest 5 Nested IF(AND functions?

DoosanRuss

New Member
Joined
Aug 3, 2010
Messages
25
Good Morning Ladies and Gents
(Using Excel 2003 (XP))

I've been using the board for the past 3 weeks and i'm pleased to say i haven't had to ask, alas it wasn't to last.
am unable to install the add in to post the spreadsheet, so will type it out instead:
A B C
1 FALSE 18
2 TRUE = TRUE

just a little background:
A1 = number of floors in a building, 1 = FALSE, 2 = TRUE
C1 = number of showers/person as per building Regulations (going to come from another worksheet)
A2 = ground floor Ablutions (using a check box)
C2 = 1st floor Ablutions (using a check box)
B1 = is blank


B2 Needs to have all of the following formulas:

IF(AND(A1=FALSE,A2=FALSE,C2=FALSE),0,)
IF(AND(A1=FALSE,A2=TRUE,C2=FALSE),SUM(C1),0)
IF(AND(A1=TRUE,A2=TRUE,C2=FALSE),SUM(C1),0)
IF(AND(A1=TRUE,A2=FALSE,C2=TRUE),0,0)
IF(AND(A1=TRUE,A2=TRUE,C2=TRUE),SUM(C1/A5),0)

As always, any help gratefulyl recieved.

Russ
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Try this formula

=IF(AND(NOT(A1),A2,NOT(C2)),C1,0)
+IF(AND(A1,A2,NOT(C2)),C1,0)
+IF(AND(A1,A2,A3),C1/A5,0)
 
Upvote 0

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

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