Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Sumif/Sumproduct/Dsum ?

Hi all,

This is my problem. I have a table of data something like this:

31-1-2008 28-2-2008 31-3-2008
London
London
New York
Paris
London
New York
New York
Milan

I want to create a summary table with totals like this:

28-2-2008
London
Paris
New York
Milan

I want the totals to change when I change the date above to reflect the
correct month totals. The dates above are all formatted as dates.

Any ideas much appreciated as always.




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 265
Default Sumif/Sumproduct/Dsum ?

In article ,
"Andrew Mackenzie" wrote:

Hi all,

This is my problem. I have a table of data something like this:

31-1-2008 28-2-2008 31-3-2008
London
London
New York
Paris
London
New York
New York
Milan

I want to create a summary table with totals like this:

28-2-2008
London
Paris
New York
Milan

I want the totals to change when I change the date above to reflect the
correct month totals. The dates above are all formatted as dates.

Any ideas much appreciated as always.


Assumptions:

1) For your source table, A2:A9 contains the city, B1:D1 contains the
data, and B2:D9 contains the data.

2) For your results table, F2:F5 contains the city, and G1 contains the
date.

Formula:

G2, copied down...

=SUMIF($A$2:$A$9,$F2,INDEX($B$2:$D$9,0,MATCH(G$1,$ B$1:$D$1,0)))

--
Domenic
http://www.xl-central.com
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Sumif/Sumproduct/Dsum ?

Hi Domenic,

Sheer bloody genius! Thanks a million for taking the time and trouble to
help me out!

Andrew
"Domenic" wrote in message
...
In article ,
"Andrew Mackenzie" wrote:

Hi all,

This is my problem. I have a table of data something like this:

31-1-2008 28-2-2008 31-3-2008
London
London
New York
Paris
London
New York
New York
Milan

I want to create a summary table with totals like this:

28-2-2008
London
Paris
New York
Milan

I want the totals to change when I change the date above to reflect the
correct month totals. The dates above are all formatted as dates.

Any ideas much appreciated as always.


Assumptions:

1) For your source table, A2:A9 contains the city, B1:D1 contains the
data, and B2:D9 contains the data.

2) For your results table, F2:F5 contains the city, and G1 contains the
date.

Formula:

G2, copied down...

=SUMIF($A$2:$A$9,$F2,INDEX($B$2:$D$9,0,MATCH(G$1,$ B$1:$D$1,0)))

--
Domenic
http://www.xl-central.com



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 265
Default Sumif/Sumproduct/Dsum ?

In article ,
"Andrew Mackenzie" wrote:

Hi Domenic,

Sheer bloody genius! Thanks a million for taking the time and trouble to
help me out!

Andrew


You're very welcome! Thanks for the feedback!

--
Domenic
http://www.xl-central.com
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
dsum or sumif? ff Excel Worksheet Functions 2 January 29th 09 09:29 AM
Dsum or SumIf [email protected] Excel Worksheet Functions 4 November 18th 06 12:28 AM
Dsum or Sumif Help!!! Hervinder Excel Worksheet Functions 3 August 17th 06 04:17 PM
I've tried DSUM, SUMIF.... Jeff Excel Discussion (Misc queries) 2 September 26th 05 09:53 AM
DSUM vs SUMIF Martin Excel Worksheet Functions 7 March 2nd 05 02:55 PM


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