Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default 2 IF statements looking at two cells

We have 3 machine ring sizes, each with a maximum dimension for a box inside.
So for the 1800 ring, the maximum width is 1200, max length is 1400. If
either the width or length exceed these, we need to specify the next size,
2300.

We have width in cell G38 Length in cell G37.
=IF(G38<1201,"1800",IF(G38<1701,"2300", IF(G38<2200,"2800",))) puts
1800/2300/2800 in cell M25
=IF(G37<1401,"1800",IF(G37<1901,"2300", IF(G37<2550,"2800",))) puts
1800/2300/2800 in cell M26

Is there a way of combining these two so that the result from both will be
in one cell? Then if EITHER G38 is 1201-1701 or G37 is 1401 - 1901 the result
is 2300 etc etc.

Thanks,
Andy

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default 2 IF statements looking at two cells

=if(or(G38=2200,G37=2550),"?",if(or(G38=1701,G3 7=1901),"2800",if(or(G38=1201,G37=1401),"2300", "1800")))

"AndyB" wrote:

We have 3 machine ring sizes, each with a maximum dimension for a box inside.
So for the 1800 ring, the maximum width is 1200, max length is 1400. If
either the width or length exceed these, we need to specify the next size,
2300.

We have width in cell G38 Length in cell G37.
=IF(G38<1201,"1800",IF(G38<1701,"2300", IF(G38<2200,"2800",))) puts
1800/2300/2800 in cell M25
=IF(G37<1401,"1800",IF(G37<1901,"2300", IF(G37<2550,"2800",))) puts
1800/2300/2800 in cell M26

Is there a way of combining these two so that the result from both will be
in one cell? Then if EITHER G38 is 1201-1701 or G37 is 1401 - 1901 the result
is 2300 etc etc.

Thanks,
Andy

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default 2 IF statements looking at two cells

100% and a quick reply
Thanks.
Andy


"bj" wrote:

=if(or(G38=2200,G37=2550),"?",if(or(G38=1701,G3 7=1901),"2800",if(or(G38=1201,G37=1401),"2300", "1800")))

"AndyB" wrote:

We have 3 machine ring sizes, each with a maximum dimension for a box inside.
So for the 1800 ring, the maximum width is 1200, max length is 1400. If
either the width or length exceed these, we need to specify the next size,
2300.

We have width in cell G38 Length in cell G37.
=IF(G38<1201,"1800",IF(G38<1701,"2300", IF(G38<2200,"2800",))) puts
1800/2300/2800 in cell M25
=IF(G37<1401,"1800",IF(G37<1901,"2300", IF(G37<2550,"2800",))) puts
1800/2300/2800 in cell M26

Is there a way of combining these two so that the result from both will be
in one cell? Then if EITHER G38 is 1201-1701 or G37 is 1401 - 1901 the result
is 2300 etc etc.

Thanks,
Andy

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
Validated cells and IF statements Karl Excel Discussion (Misc queries) 6 October 25th 06 07:09 AM
How are empty cells referenced in Excel in IF statements? MOnewt Excel Worksheet Functions 6 June 12th 06 08:34 PM
Ignoring zero cells in IF statements ~Andy~ Excel Worksheet Functions 5 November 29th 05 02:20 PM
Averages that include cells with IF statements hollenbaker Excel Worksheet Functions 5 October 7th 05 04:29 PM
IF Statements for 3 cells CP Excel Discussion (Misc queries) 1 May 2nd 05 01:38 PM


All times are GMT +1. The time now is 04:31 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"