Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have the following categories
Monitor-CRT = asstype 17 inch = assdescr 1 = age formuala reads =sumproduct(--(asstype=selection1),--(assdescr=selection2),--(age=1), I'm using a validation list to select the criteria needed Monitor-CRT & 17 Inch - this works fine with correct calculation but if I only want to search on asstype and the assdescr is blank it doesn't return the correct total because in the data the assdescr doesn't have any blank fields. How can I have the formuala in the one cell? Suggestions? TIA Bec |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is this what you mean
=IF(selection2="",sumproduct(--(asstype=selection1),--(age=1),sumproduct(--(asstype=selection1),--(assdescr=selection2),--(age=1)) -- __________________________________ HTH Bob "Bec" wrote in message ... I have the following categories Monitor-CRT = asstype 17 inch = assdescr 1 = age formuala reads =sumproduct(--(asstype=selection1),--(assdescr=selection2),--(age=1), I'm using a validation list to select the criteria needed Monitor-CRT & 17 Inch - this works fine with correct calculation but if I only want to search on asstype and the assdescr is blank it doesn't return the correct total because in the data the assdescr doesn't have any blank fields. How can I have the formuala in the one cell? Suggestions? TIA Bec |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
What if selection2 isn't blank?
"Bob Phillips" wrote: Is this what you mean =IF(selection2="",sumproduct(--(asstype=selection1),--(age=1),sumproduct(--(asstype=selection1),--(assdescr=selection2),--(age=1)) -- __________________________________ HTH Bob "Bec" wrote in message ... I have the following categories Monitor-CRT = asstype 17 inch = assdescr 1 = age formuala reads =sumproduct(--(asstype=selection1),--(assdescr=selection2),--(age=1), I'm using a validation list to select the criteria needed Monitor-CRT & 17 Inch - this works fine with correct calculation but if I only want to search on asstype and the assdescr is blank it doesn't return the correct total because in the data the assdescr doesn't have any blank fields. How can I have the formuala in the one cell? Suggestions? TIA Bec |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validation Data using Validation Table cell range..... | Excel Discussion (Misc queries) | |||
Data Validation Update Validation Selection | Excel Worksheet Functions | |||
data validation invalid in dynamic validation list | Excel Discussion (Misc queries) | |||
data validation invalid in dynamic validation list | Excel Worksheet Functions | |||
Data validation with validation lists and combo boxs | Excel Discussion (Misc queries) |