searching large tables of data based on a number of variable

Mink

New Member
Joined
Aug 4, 2005
Messages
13
Very tricky question here, hope you can help

09/10/2001 10/10/2001
Apple 1 week 1 2
1 month 2 3

Orange 1 week 2 2
1 month 1 3


Days
orange 09/10/2005 18/10/2005 9

ANS 1.066666667

what I'm looking for is a formula that allows me to look up a large table of data that searches based on two variables, ie the fruit and the date.
once it finds this then it has to recognise that the number of days mean it has to use two figures

e.g using the above example orange would bring it to A5, the date would bring it to the C column
it would therefore fall in between 2 periods therefore it would take in all of the C1 and a % of the difference between the two rates to take into account the two days outside the 1week period
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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