Calculate Trend to Target for a Quarter

EvansRJ

New Member
Joined
May 10, 2011
Messages
13
Office Version
  1. 2016
Platform
  1. Windows
Good Afternoon,

I am trying to calculate Trend to Target for Oct 1-Dec 31. So Cells A8:A99 are my dates, Cells B8:B99 are my daily sales, cell B4 has my target and I want to insert my trend in cell B6. As I enter my daily sales in B8:B99, B6 will automatically update my trend to target.

For example, if my target for those 92 days was 920 and each day from Oct 1-10 I sold 10 units, my trend should indicate I will finish the quarter off at 100% assuming the same daily sales. If I have a day at 9 units then my trend will show me just falling short.

Can anyone help me out?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Not entirely sure how to delete this post but it seems I had the same question back in 2011. Thank you MrExcel for not deleting old threads!! I found my answer!
 
Upvote 0
Actually, simply for cosmetics, how can I edit this formula =SUM(B8:B99)/((B4/(COUNT($A8:$A99)))*COUNT(B8:B99)), so that if there is no data entered in B8:B99 the B6 field where this formula is contained will remain blank? Thanks!
 
Upvote 0
Actually, simply for cosmetics, how can I edit this formula =SUM(B8:B99)/((B4/(COUNT($A8:$A99)))*COUNT(B8:B99)), so that if there is no data entered in B8:B99 the B6 field where this formula is contained will remain blank?

What you ask for, with some simplication to improve readability and maintainability.

=IF(COUNT(B8:B99)=0, "", SUM(B8:B99)/(COUNT(B8:B99)*B4/COUNT($A8:$A99))

Caveat: The result is not exactly "blank". It appears blank. But referencing B6 in a numeric expression might also require changes. Sometimes you will need to write N(B6) to avoid a #VALUE error.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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