LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default UDF for Two Matches and Sumproduct Results

I posted my question here a few days ago, but didnt get even one response,
so I am re-posting and trying to do a better job of explaining what i want.
Im pretty sure this is possible, but dont know exactly how to do it...


Basically, I am trying to come up with a way to match Account Names in
Column A of Sheet2 with Account Names in Column E of Sheet1. If there is a
match there, then match names in Column C of Sheet1 with names in Column C of
Sheet3, and sum the values, in Column V of Sheet1, that match this name!

I uploadad a file to show an example of what I am trying to achieve.
Here is a sample:
http://www.filehosting.org/file/deta...1WM/sample.xls

In the sample file, you can see that Tommy is responsible for accounts named
€˜BarNone and since BarNone has paid 4,500, Tommy should have 4,500 in
revenue under his name. I have a Sumproduct function that does the matching,
but actually only sums the values on the Row where the reps name is. This
is just how Sumproduct works; it is what it is. Im trying to overcome this
limitation by identifying all account names that each rep is responsible for,
and pick up all the revenue for the rep, according to the Account Name.

Again, in the example I posted, Tommy would have 4500 (other calculated
examples shown in Sheet3). I'm sure it can be done with a UDF. I tried
several preset functions, and just couldnt get Excel to do what I wanted it
to do. Can anyone here understand the logic and supply me with a
user-defined function that will let me do what I want to do? It would
greatly simplify my life for the next several months if I could get this
thing working.

Thanks so much,
Ryan€”



--
RyGuy
 
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
Two Matches, then Sumproduct of Values ryguy7272 Excel Worksheet Functions 16 February 19th 09 03:08 PM
UDF; Two Matches, then Sumproduct of Values ryguy7272 Excel Programming 0 February 12th 09 04:25 AM
Setting Parameters for SUMPRODUCT Results J and N Excel Worksheet Functions 2 October 4th 08 03:57 AM
=SUMPRODUCT but need to break out Jan 07 and Jan 08 results Neall Excel Programming 7 January 7th 08 02:39 PM
Pasting search results not advancing row between matches Jon[_21_] Excel Programming 3 December 10th 06 12:12 AM


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