Formula for graph to represent most current numbers.

ljkeefe

New Member
Joined
Jan 14, 2020
Messages
11
Office Version
  1. 365
Platform
  1. Windows
I'm still somewhat green when it comes to advanced formulas so here it goes.....I'd like to create a visual for this table. Ideally, the date is entered in column A, amounts entered in D and maybe H, formulas are in column J and K to reflect the amounts. I'd like the most recent amounts calculated from column J & K to represent in the graph. I've only been able to make the OFFSET formula work for one row, the formula is currently in M for the amounts in K. Once I figured the correct formula, I'd hope to add the calculated amount from J in column L, then hide both L& M with the graph. Your help is appreciated.

Snow Totals 2019-2020 CCB.xlsm
ABCDEFGHIJKLMNO
1DateTruckOperatorCCBSandSno MeltSaltCCB ReplenishmentCCB AvailableTank 1Tank 2
216,00080008000Start of Season
31/1/2050015,50080007,500
41/15/20200013,50080005,500
51/20/2050013,00080005,0005000
613,00000
713,00000
813,00000
913,00000
1013,00000
1113,00000
1213,00000
1313,00000
1413,00000
1513,00000
1613,00000
1713,00000
1813,00000
1913,00000
2013,00000
2113,00000
2213,00000
2313,00000
2413,00000
Working Copy
Cell Formulas
RangeFormula
J2J2=IF(I2>8000,8000)
I3:I24I3=I2-D3+H3
J3:J24J3=IF(OR(D3>0,H3>0),MIN(I3,8000),0)
K3:K24K3=IF(OR(D3>0,H3>0),I3-J3,0)
M5M5=OFFSET($K$2,0,0,COUNTA($K:$K)-1)
Named Ranges
NameRefers ToCells
Tank_2='Working Copy'!$K:$KM5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:I310Cell Value<=6000textNO
I2:I310Cell Value<=11000textNO
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
It's not a good idea to pre-fill all these rows before the data is entered. You can use an Excel Table with Ctrl+T that will automatically apply formulas and formatting to new rows.

What kind of chart to you want to build? Just one data point? Can you explain a bit more what the result should be?
 
Upvote 0
Ultimately, I'd like to graph the most recent amount of Tank 1 and 2( column J&K). The idea is that the user will enter the date (columnA), then material used (CCB in column D), and if there is a replenishment (column H), the final total should be in column J & K. The formulas to reflect that are already in column J&K, but now I'd like to graph it. It can be a simple bar graph.
 
Upvote 0
Get rid of all the pre-filled rows, since they just obscure the last value. I suggest you build a helper table with formulas that pull the latest value into a table that is used for the chart.

For example if Tank 1 is in column Z and the Date is in column A, you can get the latest date's value from the table with

=index(Z:Z,match(Max(A:A),A:A,0))
 
Upvote 0

Forum statistics

Threads
1,214,899
Messages
6,122,155
Members
449,068
Latest member
shiz11713

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