Need formula to lookup based on TS Date & Name ID with TS Date Btwn Eff & End Date

dawnmau

New Member
Joined
Jan 11, 2016
Messages
6
Hi All,

I am in need of assistance as to what type of Formula I should use and the basic structure of that formula
CASE FACTS AND DETAILS
Lookup values Name ID and TS Date; go to Value History wksht, find line where Name ID matches and TS Date falls between Effective Date and End Date and then enter the contents in the "Value" cell for that line and divide by 80

Calculated Value vs Hrly
TS DateName IDTotal LaborValue Hrly
2/27/2016BP1518.75Need formula Results = 37.5
2/27/2016JJ1642.0725.8
3/19/2016DT1337.5927.866
3/26/2016TW965.9522.2058

<tbody>
</tbody>

Table where value resides
Name IDEffective DateEnd DateValue
BP5/6/201612/31/20783000
BP1/18/20165/5/20163000
CF2/22/201612/31/20781903.85
DT2/7/201612/31/20782229.32
DT12/23/20152/6/20162166.5
JJ4/1/201612/31/20782855.77
JJ12/27/20153/31/20162855.77
JJ2/8/201512/26/20162064
TW11/27/201612/31/2781846.15
TW2/7/201611/26/20161776.47
TW11/1/20152/6/20161726.4

<tbody>
</tbody>

Please let me know what other information is needed. I kept this basic but as long as I know the mechanics of the formula I can
adjust as needed.

The file is comprised of two worksheets; "Calculated Value vs Hrly" and the "Value History". I want to pull the information from
the "Value History" wksht and have it "deposited" in the appropriate column of the "Calculated Value vs Hrly" wksht
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi,

take a look at this and see if this is what you're after:


Excel 2016 (Windows) 64 bit
ABCDE
1TS DateName IDTotal LaborValue HrlyFormula
227-2-2016BP1518,75Need formula Results = 37,537,50
327-2-2016JJ1642,0725,8061,50
419-3-2016DT1337,5927,8727,87
526-3-2016TW965,9522,2122,21
Calculated Value vs Hrly
Cell Formulas
RangeFormula
E2=SUMPRODUCT(('Value History'!$A$2:$A$12=B2)*('Value History'!$B$2:$B$12<=A2)*('Value History'!$C$2:$C$12>=A2)*('Value History'!$D$2:$D$12))/80



NB: I couldn't match your answer on the second row. That's caused because the value history table contains an overlap in periods; didn't know if that's just a typo or if you want the formula to elimante any overlap. I assumed it was just a typo.


Excel 2016 (Windows) 64 bit
ABCD
1Name IDEffective DateEnd DateValue
2BP6-5-201631-12-20783,000,00
3BP18-1-20165-5-20163,000,00
4CF22-2-201631-12-20781,903,85
5DT7-2-201631-12-20782,229,32
6DT23-12-20156-2-20162,166,50
7JJ1-4-201631-12-20782,855,77
8JJ27-12-201531-3-20162,855,77
9JJ8-2-201526-12-20162,064,00
10TW27-11-201631-12-20781,846,15
11TW7-2-201626-11-20161,776,47
12TW1-11-20156-2-20161,726,40
Value History
 
Last edited:
Upvote 0
So... I was merrily applying this formula to my data file and realized I need something that will work with Text values as well. Any suggestions?
 
Upvote 0
What do you mean with " needs to work with text values as well . Could you explain what part needs to...
 
Upvote 0
When I apply the formula to columns that are "text" based values, it doesn't work. so I am not sure how to look up and bring in the contents of the cell when the "value" is text. The text column is not part of the sample I provided.
TS DateName IDTotal LaborValue HrlyS/H
2/27/2016BP1518.75Formula resultsFormula Results = S
3/26/2016TW965.9521.58H

<tbody>
</tbody>







Name IDEffective DateEnd DateValueS/H
BP06/05/201612/31/20783000S
BP1/18/20166/4/20162750S
TW11/27/201612/31/20781846.15S
TW12/22/201511/26/20161726.40H

<tbody>
</tbody>








When I try the sumproduct formula, I get #VALUE! as the results.

Hope this illustration helps explain what I am trying to do.
Dawn
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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