Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If you have multiple customer types, maybe you need a table, something like
this: Col A Col B Row 1 Type Row Row 2 A 13 Row 3 M 21 Row 4 X 24 Row 5 Y 26 So back in your home sheet, somewhere in a helping column to the right (say col G), you do a VLOOKUP: =VLOOKUP(Cust!B5,CustType!A:B,2,0) Now in that cell (say G4) you've transformed the customer type into a row number, so instead of an IF statement you can do this: =MIN(INDIRECT("Cust!C"&G4),INDIRECT("Cust!D"&G4)) This looks like more work, but it allows you more flexibility when you have multiple customer types and especially when those types or the proper rows might change from time to time. --- "CJOHNSO92" wrote: I do have other customer types, but only one of them should be true in any situation. I will try the MIN and run through testing. --- "Rick Rothstein" wrote: Does this do what you want (it assumes you only have X and Y types of customers)? =IF(Cust!B5="X",MIN(Cust!C24,Cust!D24),MIN(Cust!C2 6,Cust!D26)) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combine cells with the same reference and combine quantities | Excel Discussion (Misc queries) | |||
how do I combine multiple IF statements to come up with 1 value? | Excel Worksheet Functions | |||
Combine Intersect Range in If statements | Excel Discussion (Misc queries) | |||
IF Statements (Mutliple Statements) | Excel Worksheet Functions | |||
IF statements | Excel Discussion (Misc queries) |