Formula to create a dynamic graph accumulating the amounts

aromera

New Member
Joined
Jan 8, 2025
Messages
1
Office Version
  1. 365
Hi guys,

I have the following table in excel, and i am trying to create a formula utilizing name manger to have a dynamic graph, but i cannot get it to work - what i am trying to do is that, there is another table will feed this data with a sumif, right next to January, then i have amount 2 which is the cumulative amount during the month - then column date and accumulated will be a formula just to display the day and amounts accumulated that are supposed to be in the graph. I included below the graph and the formulas created as well as the table. I would like to remove the #N/A automatically so only the days where i have data would display and it would be accumulating as new data is entered.

thank you for the help.

I created these formulas in the name manager:

amount='GRAPH DATA'!$E$2:INDEX('GRAPH DATA'!$E$2:$E$31, MATCH(9^103, 'GRAPH DATA'!$E$2:$E$31))
date='GRAPH DATA'!$D$2:INDEX('GRAPH DATA'!$D$2:$D$31, MATCH(9^103, 'GRAPH DATA'!$D$2:$D$31))

1736394273254.png


once i link the graph to the name manger, the data shows like this:

1736394364614.png






JANUARYAMOUNTAMOUNT2DATEACCUMUlATED
1-Jan-20250.00#N/A#N/A
2-Jan-20250.00#N/A#N/A
3-Jan-20250.00#N/A#N/A
4-Jan-20255,000.005,000.004-Jan-20255,000.00
5-Jan-20255,000.00#N/A#N/A
6-Jan-20251,000.006,000.006-Jan-20256,000.00
7-Jan-20256,000.00#N/A#N/A
8-Jan-20256,000.00#N/A#N/A
9-Jan-20256,000.00#N/A#N/A
10-Jan-20256,000.00#N/A#N/A
11-Jan-20256,000.00#N/A#N/A
12-Jan-20256,000.00#N/A#N/A
13-Jan-20256,000.00#N/A#N/A
14-Jan-20256,000.00#N/A#N/A
15-Jan-20256,000.00#N/A#N/A
16-Jan-20256,000.00#N/A#N/A
17-Jan-20256,000.00#N/A#N/A
18-Jan-20256,000.00#N/A#N/A
19-Jan-20256,000.00#N/A#N/A
20-Jan-20256,000.00#N/A#N/A
21-Jan-20256,000.00#N/A#N/A
22-Jan-20252,500.008,500.0022-Jan-20258,500.00
23-Jan-20258,500.00#N/A#N/A
24-Jan-20258,500.00#N/A#N/A
25-Jan-20258,500.00#N/A#N/A
26-Jan-20258,500.00#N/A#N/A
27-Jan-20258,500.00#N/A#N/A
28-Jan-20255,000.0013,500.0028-Jan-202513,500.00
29-Jan-202513,500.00#N/A#N/A
30-Jan-2025800.0014,300.0030-Jan-202514,300.00
 
Hi aromera,

I you could supply a greater example of your data set management (how do you add new amount, is it stored in a table of freely putted in a spreadsheet, why using empty date?,...) I could forward you a cleaner solution. Althought, for now, I would wrap those formula to prevent NA like so: *I am using the French version of Excel 365, so there might be some errors due to manual translation or discrepancies in the Excel user manual*

- Amount
Excel Formula:
=LAMBDA(tbl,FILTER(tbl,IFERROR(tbl,-1)>0,""))('GRAPH DATA'!$E$2:INDEX('GRAPH DATA'!$E$2:$E$31, MATCH(9^103, 'GRAPH DATA'!$E$2:$E$31)))
- Date
Excel Formula:
LAMBDA(tbl,TEXT(FILTER(tbl,IFERROR(tbl,-1)>0,""),"DD-MMM-YYYY"))('GRAPH DATA'!$D$2:INDEX('GRAPH DATA'!$D$2:$D$31, MATCH(9^103, 'GRAPH DATA'!$D$2:$D$31)))

bests regards,

Vincent
 
Upvote 0

Forum statistics

Threads
1,226,771
Messages
6,192,918
Members
453,766
Latest member
Gskier

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