Line graph to only show latest date (and no blank / empty cell values)

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
The below is created from a formula dragged from another sheet of COUNTIF statements.

However, I would like the graph to only go up to the last day with data in the cell, starting 1 Feb. (ie so no nil values displayed, and to todays date only, but expands automatically every day I add data in


1676366019535.png
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
to stop the data showing zero - you could add a new set of columns
with the value as #n/a instead of blank
and copy the values across
something like

=IF( cell with date <= today() , value in cell, #N/A)
 
Upvote 0
fror example
here

Note the #N/A does not need "" around OR you can use NA() instead

Book4
ABCDEFGHIJKLMN
1datedatevalue
22/1/2312/1/231
32/2/2322/2/232
42/3/2332/3/233
52/4/2342/4/234
62/5/2352/5/235
72/6/2362/6/236
82/7/2372/7/237
92/8/2382/8/238
102/9/2392/9/239
112/10/23102/10/2310
122/11/23112/11/2311
132/12/23122/12/2312
142/13/23132/13/2313
152/14/23142/14/2314
162/15/23152/15/23#N/A
172/16/23162/16/23#N/A
182/17/23172/17/23#N/A
192/18/23182/18/23#N/A
202/19/23192/19/23#N/A
212/20/23202/20/23#N/A
222/21/23212/21/23#N/A
232/22/23222/22/23#N/A
242/23/23232/23/23#N/A
25
Sheet1
Cell Formulas
RangeFormula
E2:E24E2=A2
F2F2=IF(E2>TODAY(),#N/A,B2)
F3:F15F3=IF(E3<=TODAY(),B3,#N/A)
F16:F24F16=IF(E16<=TODAY(),B16,NA())
 

Attachments

  • Screenshot 2023-02-14 at 12.47.33.jpeg
    Screenshot 2023-02-14 at 12.47.33.jpeg
    131.8 KB · Views: 3
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,309
Members
449,080
Latest member
jmsotelo

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