Excel Date Range, adding zero value in missing date

KSKWin

New Member
Joined
May 7, 2023
Messages
10
Office Version
  1. 2019
Platform
  1. Windows
Hi,
I have an excel with Date column (with missing date) and value column. I have to fill the missing dates in the Date column with zero. Also, if same date in repeated with more than once, it should be consolidate with one date instance and the relevant values should be summed up with single value. And the series to be continued till the end of the month.

Attached the excel with Date column and Value column.
 

Attachments

  • Excel missing date with value.jpg
    Excel missing date with value.jpg
    155.6 KB · Views: 6

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Here is an easy way:

Create a new grid with data and value.
Enter in your first date, then below it enter in a formula to add one to that date, i.e.
Excel Formula:
=A2+1
Copy down for as far as you want until you have all the dates you need.

Now, in the value column, enter a simple SUMIF formula, to sum up the values from your original table, where your condition is your date column.
 
Upvote 0
For the future I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)

This is a very slight variation on Joe's suggestion.
Formulas in E3 and F2 are both copied down to row 32. This allows for months with 31 days.
Where I have $100 in the column F formula (twice), use a number that will be greater than the number of rows of data you will ever have in columns A:B

Cell Formulas
RangeFormula
E2E2=A2-DAY(A2)+1
F2:F32F2=IF(E2="","",SUMIF(A$2:A$100,E2,B$2:B$100))
E3:E32E3=IF(MAX(E$2:E2)=EOMONTH(E$2,0),"",E2+1)
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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