Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Timmy Mac1
 
Posts: n/a
Default Sumproduct Help Needed


I've got a spreadsheet set up with

X = a defined type

y = a defined location

Z = a number pertinent to the location and type.


I have it set up in such a way that I can select my location in a cell
A1 with data validation and then for each type I will get a number that
relates to the selected location.

so my formula is along the lines of...

A2. A10 are lists of types

and B2 will have -=sumproduct((x=A2)*(y=$A$1),z)-

What I want to know is if there is any way I can have the formula
return the amount for all locations as an option, without creating a
separate formula omitting the -y=$A$2- part.

In other words is there some sort of text string which excel will see
as a match for all the locations I have listed?

hope this explains what I'm trying to achieve and thanks for any
assistance out there.

tm


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile: http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=504885

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Sumproduct Help Needed

=SUMPRODUCT(--(ISNUMBER(MATCH(x,A2:A10,0))),--(y=$A$1),z)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Timmy Mac1" wrote
in message ...

I've got a spreadsheet set up with

X = a defined type

y = a defined location

Z = a number pertinent to the location and type.


I have it set up in such a way that I can select my location in a cell
A1 with data validation and then for each type I will get a number that
relates to the selected location.

so my formula is along the lines of...

A2. A10 are lists of types

and B2 will have -=sumproduct((x=A2)*(y=$A$1),z)-

What I want to know is if there is any way I can have the formula
return the amount for all locations as an option, without creating a
separate formula omitting the -y=$A$2- part.

In other words is there some sort of text string which excel will see
as a match for all the locations I have listed?

hope this explains what I'm trying to achieve and thanks for any
assistance out there.

tm


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile:

http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=504885



  #3   Report Post  
Posted to microsoft.public.excel.misc
Timmy Mac1
 
Posts: n/a
Default Sumproduct Help Needed


Bob

Thanks very much for your response, but I must confess I'm floundering
in trying to understand your formula. In the meantime I've worked a
long way around! I've added a location for total and included it on my
data validation list!


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile: http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=504885

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Sumproduct Help Needed

In essence all it does is tot compare all values in A2:A10 rather than just
1.

Did you try it and see if it worked?

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Timmy Mac1" wrote
in message ...

Bob

Thanks very much for your response, but I must confess I'm floundering
in trying to understand your formula. In the meantime I've worked a
long way around! I've added a location for total and included it on my
data validation list!


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile:

http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=504885



  #5   Report Post  
Posted to microsoft.public.excel.misc
Timmy Mac1
 
Posts: n/a
Default Sumproduct Help Needed


Thanks again Bob

I will give it a go when I've got time.

I was trying to understand the sense of what it was trying to do by
looking at it, but couldn't get it right in my head. Like most things
though, that generally comes when I've ploughed through the example :)


--
Timmy Mac1
------------------------------------------------------------------------
Timmy Mac1's Profile: http://www.excelforum.com/member.php...o&userid=15188
View this thread: http://www.excelforum.com/showthread...hreadid=504885

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
SUMPRODUCT help needed bradgrafelman Excel Worksheet Functions 2 June 13th 05 03:49 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct help needed! Trying to excel in life but need help Excel Worksheet Functions 5 January 21st 05 09:07 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


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