daily, MTD and YTD Sales Report

jb00976

New Member
Joined
Oct 23, 2017
Messages
32
I am trying to create a Sales Report that will show performance vs last year.

I have created a formula to give me yesterdays date with one cell showing the month, one the day and one the year (located in cell C1, D1 and E1 respectively) here are the formulas:
=TEXT(TODAY()-1,"MMMM")
=DAY(TODAY()-1)
=YEAR(TODAY()-1)

Then I have data that looks like this:

[TABLE="width: 1128"]
<colgroup><col width="250" style="width: 188pt;" span="6"> <tbody>[TR]
[TD="width: 250, bgcolor: #002060"]Month[/TD]
[TD="width: 250, bgcolor: #002060"]Day[/TD]
[TD="width: 250, bgcolor: #002060"]Last Year[/TD]
[TD="width: 250, bgcolor: #002060"]This Year[/TD]
[TD="width: 250, bgcolor: #002060"]% Achievement[/TD]
[TD="width: 250, bgcolor: #002060"]Difference[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]January[/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: center"]#DIV/0![/TD]
[TD="bgcolor: transparent, align: right"]$0.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]January[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: center"]#DIV/0![/TD]
[TD="bgcolor: transparent, align: right"]$0.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]January[/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: center"]#DIV/0![/TD]
[TD="bgcolor: transparent, align: right"]$0.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]January[/TD]
[TD="bgcolor: transparent, align: right"]4[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: center"]#DIV/0![/TD]
[TD="bgcolor: transparent, align: right"]$0.00[/TD]
[/TR]
</tbody>[/TABLE]

(Data in a separate tab called Sales, table starts at cell A1 and shows the entire year)

I want formulas to return the % achievement and difference for the day (yesterday), Month to Date, and Year to date.

Thank You
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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