Dynamic summation from a TABLE

Hrishi

Board Regular
Joined
Jan 25, 2017
Messages
56
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a table where in my first columns is of dates (there will be multiple entries of same date, which I add daily and number of rows increases) and 6th columns has values. these are the values for respective dates. sample is as follows.
Date
Amount
1/1/17
500
1/1/17
200
2/2/17
350
3/2/17
550
3/2/17
850

<tbody>
</tbody>

Now I want to make another table which will summaries above figures, so there will be one entry for one date and value will be total of all values achieved on same date in above table. e.g.
Date
Amount
1/1/17
700
2/1/17
350
3/1/17
1400

<tbody>
</tbody>

Now my problem is, I keep adding values in my first table so rows keeps increasing. if I use sumifs formula, reference of last cell in this formula is fix. Dsum I am unable to use Dsumm formula as well, as it gives total of all the dates mentioned in table 2... can somebody help me in this case.

Regards,
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Convert the range of cells into a table and then reference the table fields in your SUMIFS - this way the ranges will always be correct.
 
Upvote 0
I don't use tables much so this is the first time I have used SUMIF with a table but it does work. My summary range in E2:F4 (Headings IN E1:F1) .. you will need to add to this range as there as more range in the table

formula in F2 Don't type the parameters in the formula . Just type "SUMIFS(" (ie formula name and opening bracket) . then point at data you want to summarize in the table you end up with this formula =SUMIFS(Table1[Amount],Table1[Date],E2)

you don't need to adjust this formula as you add /delete rows .. I have added a couple of rows as belo
**NB - YOU will still need to manually add rows to the summary range if the table has "new" dates .. maybe someone else can help automate that bit ***
DateAmountdateamount
1/01/20175001/01/2017700
1/01/20172002/02/2017350
2/02/20173503/02/20171592
3/02/2017550
3/02/2017850
3/02/2017180
3/02/201712

<colgroup><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>







dateamount
1/01/2017700
2/02/2017350
3/02/20171400

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Convert the range of cells into a table and then reference the table fields in your SUMIFS - this way the ranges will always be correct.

Hi AliGW
the way I read OP's post data is already in a table but his formula is "range" type formula. My post I have started to answer ... are you able to assist with getting the summary range to add "new" dates
 
Upvote 0
I still don't read it that way. We shall have to wait until the OP has confirmed one way or the other.
 
Upvote 0
Hi, Thanks for your input and discussion. Understanding of "Liveinhope's is right. my date in first table is already in "TABLE" and I have already used the formula given by liveinhope, but the result is all zero. I wonder why?..
In my sheet the formula is =+SUMIFS(Table16[[#Headers],[Value]],Table16[[#Headers],[Date]],G4) but all results are zero,,

In your explanation in formula "Header " is not appearing, while when I select the head it shows it like above.
 
Upvote 0
Oh yes, I manually removed that Header and typed the formula the way liveinhope shown, and it worked perfectly the way i wanted. Big Thanks a lot to both of you.
 
Upvote 0
Oh yes, I manually removed that Header and typed the formula the way liveinhope shown, and it worked perfectly the way i wanted. Big Thanks a lot to both of you.

Suggest that you don't type the formulas - much easier to select the data you need and excel will "translate" your selection for you

NB Just remember that at the moment you will still need to maintain the dates in your summary table manually as your table expands to include more dates

I don't know how to automate that bit .. hopefully someone else can help you there
 
Upvote 0

Forum statistics

Threads
1,216,113
Messages
6,128,905
Members
449,477
Latest member
panjongshing

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top