Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am writing a request form for our printing department and I need some help
with a nested if formula. I have two main fields in this formula - size requested and size used. If the request is for 8.5 x 11 paper, lets say 100 pcs, and we use 8.5 x 11 paper to fill the request the quantity of sheets of paper used is 100 (Quantity *1). If we use 11x17 paper to fill the request, we can get two 8.5 x 11 pieces on that paper so I need to divide the requested amount by 2 to see how many sheets of paper were used. Because there are varying size combinations I don't know the best way to figure out sheets used. In English I want to say (R=size requested, U=size Used, Q = quantity requested) If R = U than Q *1 If R = 8.5x11 and U = 11x17 than Q/2 If R = 8.5x11 and U = 17x22 than Q/4 If R = 11x17 and U = 17 x 22 than Q/2 If R = 8x15 and U = 11x17 than Q*1 If R = 8x14 and U = 11x22 than Q/2 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks! I used your basic idea to come up with this formula that works
perfect! Thanks again! (I10 = requested size, C15 = size used , and D8 = quantity requested) IF(I10=C15,D8*1,IF(AND(I10="8.5 x 11",C15="17 x 22"),D8/4,IF(AND(I10="8.5 x 14",C15="11 x 17"),D8*1,IF(OR(AND(I10="8.5 x 11",C15="11 x 17"),AND(I10="11 x 17",C15="17 x 22"),AND(I10="8.5 x 14",C15="17 x 22")),D8/2,"")))) "Don Guillett" wrote: basic idea =q/if(r=8.5x11,if(u=11x17,2,4)),nextcondition)) or work using /2 with the OR statement =q/if(or(cond1,cond2,cond3),2,next -- Don Guillett Microsoft MVP Excel SalesAid Software "JICDB" wrote in message ... I am writing a request form for our printing department and I need some help with a nested if formula. I have two main fields in this formula - size requested and size used. If the request is for 8.5 x 11 paper, lets say 100 pcs, and we use 8.5 x 11 paper to fill the request the quantity of sheets of paper used is 100 (Quantity *1). If we use 11x17 paper to fill the request, we can get two 8.5 x 11 pieces on that paper so I need to divide the requested amount by 2 to see how many sheets of paper were used. Because there are varying size combinations I don't know the best way to figure out sheets used. In English I want to say (R=size requested, U=size Used, Q = quantity requested) If R = U than Q *1 If R = 8.5x11 and U = 11x17 than Q/2 If R = 8.5x11 and U = 17x22 than Q/4 If R = 11x17 and U = 17 x 22 than Q/2 If R = 8x15 and U = 11x17 than Q*1 If R = 8x14 and U = 11x22 than Q/2 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Too Many Nested IF Statements! | Excel Worksheet Functions | |||
nested if statements | Excel Worksheet Functions | |||
Nested IF statements | Excel Discussion (Misc queries) | |||
I want to use more than 7 nested if then statements | Excel Worksheet Functions | |||
Do I need nested IF statements? | Excel Worksheet Functions |