Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to lookup and sum multiple values based on multple columns

I would like to have one table with the names of people with an amount of
money owed combined with the length of time it has been owed. So something
like:

Name 0-15 16-30 30+
Bill 12.75 0 32.16
Steve 0 5 75.25

And another table with the name of a person an amount of money owed and the
date that it is owed from. So something like:

Name Date Fee
Bill 2/3/04 32.16
Steve 5/4/05 50
Steve 6/28/05 25.25
Steve 7/8/05 5
Bill 7/28/05 8.75
Bill 8/1/05 4

I would like for the first chart to be able to look up the data from the
second chart and add it up and place it in the appropriate row under the
correct range of dates.

Thanks,
Ray
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default How to lookup and sum multiple values based on multple columns

This can be done with 3 sum product formulas like this. Your second chart
with the data to be looked up is called sheet 1 and your aged amount by
person is sheet 2. On sheet 2 your people are in cells A2, A3, ...
Aged < 15 days uses this formul
=SUMPRODUCT((Sheet1!$A$2:$A$100=Sheet2!$A2)*((Shee t1!$B$2:$B$100TODAY()-15)*(Sheet1!$C$2:$C$100)))

16-3
=SUMPRODUCT((Sheet1!$A$2:$A$100=Sheet2!$A2)*((Shee t1!$B$2:$B$100<TODAY()-16)*((Sheet1!$B$2:$B$100TODAY()-30)*(Sheet1!$C$2:$C$100))))

30
=SUMPRODUCT((Sheet1!$A$2:$A$100=Sheet2!$A2)*((Shee t1!$B$2:$B$100<TODAY()-30)*(Sheet1!$C$2:$C$100)))

Here is a link to the sumproduct fromula for your reference...
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
HTH...

Jim Thomlinson


"Ray Gans" wrote:

I would like to have one table with the names of people with an amount of
money owed combined with the length of time it has been owed. So something
like:

Name 0-15 16-30 30+
Bill 12.75 0 32.16
Steve 0 5 75.25

And another table with the name of a person an amount of money owed and the
date that it is owed from. So something like:

Name Date Fee
Bill 2/3/04 32.16
Steve 5/4/05 50
Steve 6/28/05 25.25
Steve 7/8/05 5
Bill 7/28/05 8.75
Bill 8/1/05 4

I would like for the first chart to be able to look up the data from the
second chart and add it up and place it in the appropriate row under the
correct range of dates.

Thanks,
Ray

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to lookup and sum multiple values based on multple columns

Thank you, that worked perfectly.

Ray

"Jim Thomlinson" wrote:

This can be done with 3 sum product formulas like this. Your second chart
with the data to be looked up is called sheet 1 and your aged amount by
person is sheet 2. On sheet 2 your people are in cells A2, A3, ...
Aged < 15 days uses this formula
=SUMPRODUCT((Sheet1!$A$2:$A$100=Sheet2!$A2)*((Shee t1!$B$2:$B$100TODAY()-15)*(Sheet1!$C$2:$C$100)))

16-30
=SUMPRODUCT((Sheet1!$A$2:$A$100=Sheet2!$A2)*((Shee t1!$B$2:$B$100<TODAY()-16)*((Sheet1!$B$2:$B$100TODAY()-30)*(Sheet1!$C$2:$C$100))))

30+
=SUMPRODUCT((Sheet1!$A$2:$A$100=Sheet2!$A2)*((Shee t1!$B$2:$B$100<TODAY()-30)*(Sheet1!$C$2:$C$100)))

Here is a link to the sumproduct fromula for your reference...
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
HTH...

Jim Thomlinson


"Ray Gans" wrote:

I would like to have one table with the names of people with an amount of
money owed combined with the length of time it has been owed. So something
like:

Name 0-15 16-30 30+
Bill 12.75 0 32.16
Steve 0 5 75.25

And another table with the name of a person an amount of money owed and the
date that it is owed from. So something like:

Name Date Fee
Bill 2/3/04 32.16
Steve 5/4/05 50
Steve 6/28/05 25.25
Steve 7/8/05 5
Bill 7/28/05 8.75
Bill 8/1/05 4

I would like for the first chart to be able to look up the data from the
second chart and add it up and place it in the appropriate row under the
correct range of dates.

Thanks,
Ray

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
Lookup and Display Multiple Unique values based on criteria MPI Planner[_2_] Excel Worksheet Functions 8 December 26th 09 08:42 PM
Lookup and Display Multiple Unique values based on criteria MPI Planner[_2_] Excel Worksheet Functions 2 December 11th 09 03:06 PM
how to lookup the values from multiple columns? Faiz Excel Discussion (Misc queries) 2 October 30th 09 06:17 PM
Lookup all values within multiple columns and copy to new column Tommy[_4_] Excel Discussion (Misc queries) 3 August 17th 07 01:44 AM
Lookup in Multiple Columns, Return Multiple Values andy62 Excel Worksheet Functions 3 July 6th 06 02:36 AM


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