Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 91
Default Nested if statements

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 91
Default Nested if statements

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
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
Too Many Nested IF Statements! Tiziano Excel Worksheet Functions 5 October 3rd 07 02:29 AM
nested if statements Jeremy Excel Worksheet Functions 2 September 14th 06 08:08 PM
Nested IF statements maacmaac Excel Discussion (Misc queries) 0 January 23rd 06 09:22 PM
I want to use more than 7 nested if then statements IF I only had a brain for IF statements Excel Worksheet Functions 11 August 9th 05 01:28 AM
Do I need nested IF statements? Jaramya Excel Worksheet Functions 1 November 5th 04 09:10 PM


All times are GMT +1. The time now is 11:05 AM.

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"