Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Sumproduct, Validation & Blancs

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Sumproduct, Validation & Blancs

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Sumproduct, Validation & Blancs

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
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
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
Data Validation Update Validation Selection PCreighton Excel Worksheet Functions 3 September 11th 07 03:32 PM
data validation invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM


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