Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
titushanke
 
Posts: n/a
Default SUMPRODUCT with PLACEHOLDERS?


Hi, I am stuck here with something or maybe it's just because it's
Monday morning..

I have a source sheet with values in rows and columns and an output
sheet which should sum the values in column F6-F999 if the values meet
the following criteria:

- date in E6-E999 = date in output$G$3
- value in C6-C99 = BR9

This is my formula and it works fine.

=SUMPRODUCT(VISION!$F$6:$F$999*(VISION!$E$6:$E$999 =OUTPUT!G$3)*(VISION!$C$6:$C$999=\"BR9\"))

Now I discovered though that sometimes the values in C6-C99 vary
slighlty, such as:

BR9
BR9A
BR9B
BR9C
etc.

I want SUMPRODUCT to include all variations of BR9.
In a different case when I had to use the VLOOKUP formula, I used the
following syntax:

\"BR9\"&\"*\"

so the formula looks like this:

=SUMPRODUCT(VISION!$F$6:$F$999*(VISION!$E$6:$E$999 =OUTPUT!G$3)*(VISION!$C$6:$C$999=\"BR9\"&\"*\"))

Unfortunately this returns 0 results so I believe SUMPRODUCT doesn't
understand the syntax...

Anybody got a clue?
Thanks for your help,

Titus.


--
titushanke
------------------------------------------------------------------------
titushanke's Profile: http://www.excelforum.com/member.php...o&userid=19997
View this thread: http://www.excelforum.com/showthread...hreadid=519286

  #2   Report Post  
Posted to microsoft.public.excel.misc
titushanke
 
Posts: n/a
Default SUMPRODUCT with PLACEHOLDERS?


...one more thing.

sometimes the value I want to look up is not BR9, but B9A, for
example.

Is there a more elegant way than two look these two possibilities up by
adding another sumproduct formula such as:

sumproduct(..."BR9...")+sumproduct(..."B9...")?

Thanks for your help!!
Titus


--
titushanke
------------------------------------------------------------------------
titushanke's Profile: http://www.excelforum.com/member.php...o&userid=19997
View this thread: http://www.excelforum.com/showthread...hreadid=519286

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dav
 
Posts: n/a
Default SUMPRODUCT with PLACEHOLDERS?


=SUMPRODUCT(VISION!$F$6:$F$999*(VISION!$E$6:$E$999
=OUTPUT!G$3)*(VISION!$C$6:$C$999="BR9"&"*"))

if all your differences are after the first 3 characters eg
left(cell,3) is the same in each instance you could try

=SUMPRODUCT((VISION!$F$6:$F$999)*(VISION!$E$6:$E$9 99
=OUTPUT!G$3)*(left(VISION!$C$6:$C$999,3)="BR9"))

regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=519286

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default SUMPRODUCT with PLACEHOLDERS?

if you want all starting with BR9

=SUMPRODUCT(--(VISION!$F$6:$F$999),--(VISION!$E$6:$E$999=OUTPUT!G$3),--(LEFT
(VISION!$C$6:$C$999)="BR9"))

all containing BR9

=SUMPRODUCT(--(VISION!$F$6:$F$999),--(VISION!$E$6:$E$999=OUTPUT!G$3),--(ISNU
MBER(FIND("BR9",VISION!$C$6:$C$999))))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"titushanke" wrote
in message ...

Hi, I am stuck here with something or maybe it's just because it's
Monday morning..

I have a source sheet with values in rows and columns and an output
sheet which should sum the values in column F6-F999 if the values meet
the following criteria:

- date in E6-E999 = date in output$G$3
- value in C6-C99 = BR9

This is my formula and it works fine.


=SUMPRODUCT(VISION!$F$6:$F$999*(VISION!$E$6:$E$999 =OUTPUT!G$3)*(VISION!$C$6:
$C$999=\"BR9\"))

Now I discovered though that sometimes the values in C6-C99 vary
slighlty, such as:

BR9
BR9A
BR9B
BR9C
etc.

I want SUMPRODUCT to include all variations of BR9.
In a different case when I had to use the VLOOKUP formula, I used the
following syntax:

\"BR9\"&\"*\"

so the formula looks like this:


=SUMPRODUCT(VISION!$F$6:$F$999*(VISION!$E$6:$E$999 =OUTPUT!G$3)*(VISION!$C$6:
$C$999=\"BR9\"&\"*\"))

Unfortunately this returns 0 results so I believe SUMPRODUCT doesn't
understand the syntax...

Anybody got a clue?
Thanks for your help,

Titus.


--
titushanke
------------------------------------------------------------------------
titushanke's Profile:

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



  #5   Report Post  
Posted to microsoft.public.excel.misc
titushanke
 
Posts: n/a
Default SUMPRODUCT with PLACEHOLDERS?


Hi there! Thanks for the quick help!
I wish people in my office would respond to my emails the way you guys
do here in the forum! lol :-)

The left() command was exactly what I needed!

Thanks a million, once again!

Greetings from Italy,

Titus.


--
titushanke
------------------------------------------------------------------------
titushanke's Profile: http://www.excelforum.com/member.php...o&userid=19997
View this thread: http://www.excelforum.com/showthread...hreadid=519286



  #6   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default SUMPRODUCT with PLACEHOLDERS?

I am sure they would if you paid them what you pay us <vbg

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"titushanke" wrote
in message ...

Hi there! Thanks for the quick help!
I wish people in my office would respond to my emails the way you guys
do here in the forum! lol :-)

The left() command was exactly what I needed!

Thanks a million, once again!

Greetings from Italy,

Titus.


--
titushanke
------------------------------------------------------------------------
titushanke's Profile:

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



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 Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 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 09:19 AM.

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"