Counting Blank Cells using TODAY()

Joeclupis

Board Regular
Joined
Jun 18, 2016
Messages
63
Hello all,

I have a spreadsheet that I am trying to count the number of days in one column from last entry to TODAY(). I have a date column and then a second column that has delivery amounts. This second column is ONLY used when a delivery is made. I would like to count the number of days from last delivery to TODAY(). I can get the CountBlank to work, but not as a floating count. Also, is there a way to make it so that the formula covers the entire column, but only returns from the last delivery thru current date?

Thank you for your help,

Joe
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Please provide some sample data for us to work with.

datepurchases
3/5/174500
3/6/17
3/7/17
3/8/17
3/9/17
3/10/17
3/11/17
3/13/17
3/14/178000
3/15/17
3/18/17
3/19/17
3/20/17
3/21/171600
3/22/17
3/23/17
3/24/17
3/25/17
3/26/17
3/27/17
3/28/17
3/29/17
3/30/17
3/31/17
4/1/17

<tbody>
</tbody>
 
Upvote 0
Try the following array formula (to be entered using Ctrl+Shift+Enter, not just Enter):

=TODAY()-MAX(IF(B2:B1000<>"",A2:A1000))
 
Upvote 0
Tetra201,

Thank you for the formula.

I made an adjustment as I am using the formula in one tab referring to another tab.

for some reason, I am coming up with a negative number.

Here is the amended formula: =TODAY()-MAX(IF('DAILY VALUES'!F2:F10000<>"",'DAILY VALUES'!A2:A10000))

F is the correct column for my delivery annotations, and A is the date column.

Should i be expecting negative numbers? I would expect a positive number as I am "counting" the number of days from the last delivery.
 
Upvote 0
Aladin Akyurek,

I pasted the formula into the spreadsheet. into the column with the entries for deliveries. the count is -274. Unfortunately, the count should be 16. We had a delivery on 3/14/17.
 
Upvote 0
Upvote 0
@Joeclupis:

Try this (to be entered using Ctrl+Shift+Enter, not just Enter):

=TODAY()-MAX(IF(('DAILY VALUES'!F2:F10000<>"")*('DAILY VALUES'!A2:A10000)<=TODAY()),'DAILY VALUES'!A2:A10000))
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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