Selecting rows if a date falls within a date range

walkercanopy

New Member
Joined
Feb 8, 2017
Messages
2
Hi,

I am two excel sheets -- one with monthly goal by market and another one with weekly sales number by market. In the weekly sales sheet I need to determine what percentage of goal is met.

Here is an example: Arizona Jan (first 4 weeks) goal is $300K. Sales in Arizona on week1 was $30K, so percentage of goal met was 10%; on week2 sale was $85K (cumulative $115K), so percentage met was ~38% and so on.

I need to get the correct row from Goal sheet to calculate the percentage. The challenge is that goals are by month and sales summary are by week. Here are logical steps:
1. Match the market first, which will give me multiple monthly goals.
2. Check the record where the week (date) falls in between the monthly start and end dates.
3. Get the Goal data and calculate the percentage using the cumulative sales.

How do I do the step 1 and 2?

Here is the Goal sheet:
MarketStartDtEndDtGoal
AZ1-Jan-1728-Jan-17$300,000
AZ29-Jan-1725-Feb-17$275,000
AZ26-Feb-1725-Mar-17$308,000
GA1-Jan-1728-Jan-17$280,000
GA29-Jan-1725-Feb-17$275,000
GA26-Feb-1725-Mar-17$325,000
KY1-Jan-1728-Jan-17$180,000
KY29-Jan-1725-Feb-17$165,000
KY26-Feb-1725-Mar-17$175,000
NY1-Jan-1728-Jan-17$520,000
NY29-Jan-1725-Feb-17$540,000
NY26-Feb-1725-Mar-17$575,000

<tbody>
</tbody><colgroup><col><col><col><col></colgroup>


Here is the Weekly sales sheet:
MarketWeekStartDtSalesCummulative Market Sales% of Goal Met
AZ1-Jan-17$30,000 $30,000
AZ8-Jan-17$85,000 $115,000
AZ15-Jan-17$150,000 $265,000
GA1-Jan-17$20,000 $20,000
GA8-Jan-17$75,000 $95,000
GA15-Jan-17$170,000 $265,000
KY1-Jan-17$35,000 $35,000
KY8-Jan-17$30,000 $65,000
KY15-Jan-17$190,000 $255,000
NY1-Jan-17$60,000 $60,000
NY8-Jan-17$135,000 $195,000
NY15-Jan-17$250,000 $445,000

<tbody>
</tbody><colgroup><col><col><col><col><col></colgroup>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Sorry for the grammatical mistakes in my post!!

Also, I am new to board and don't know how to attach a sample file. I looked at options available, but couldn't find any.
 
Upvote 0

Forum statistics

Threads
1,214,797
Messages
6,121,629
Members
449,041
Latest member
Postman24

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