Lookup Formula

if_Excel

New Member
Joined
May 19, 2011
Messages
26
I HAVE some data generated by a database for the date an employee worked and how much work they did. the query returns 7 days worth of data and i could have multiple entries for a single date. i need to know how much apple is picked from the beggiing of the week to the current date. the week begins on Sunday. So if on a wednesday i want to find how many has been picked to date, i want to search the returned data (7 days) using the begining of the week date, the returned date and current date as the criteria. the data looks like this
col A (retdate) col B (Ret cnt) Col C (wK begin) Col D (today) colE(wksum
7/1/11 500 6/26/11 7/1/11
6/30/11 200
6/30/11 320
6/29/11 400
6/28/11 180
6/28/11 200
6/27/11 100
6/26/11 550
6/25/11 410
i think the formula will search the array in A using C and D as the criteria and return the sum of B mathcing the criteria in E. I think it might be a vlookup or sumif. i just cant get the construction right.
thanks
 

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.
sorry for the confusion. what i want is to search dates and quantity returned from a database by matching dates from the beginnig of current week till the current day and return the sum of the quantity for all dates that matches.
 
Upvote 0
sorry for the confusion. what i want is to search dates and quantity returned from a database by matching dates from the beginnig of current week till the current day and return the sum of the quantity for all dates that matches.

Should not be that diffcult to post a very tiny sample along with the desired result... Guessing:

Control+shift+enter, not just enter...

=SUM(IF(DateRange>=StartDate,IF(DateRange<=TODAY(),QuantityRange)))

If you are on Excel 2007 or later, just enter...

=SUMIFS(QuantityRange,DateRange,">="&StartDate,DateRange,"<="&TODAY())
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,484
Members
452,917
Latest member
MrsMSalt

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