Lookup formula

tristanlau

New Member
Joined
Aug 14, 2017
Messages
1
Hi, referring to the attached screenshot,
9rpqqeF.jpg


MaXFr

quick to the question:

For cell G3,
i need to lookup the value of cell B3 (which is "0019" on Day 4229), from B4 to F12. (till the bottom of the table)
As "0019" found on cell C8, which is Day 4224, the output on cell G3 will be 4229 minus 4224, which is "5"

example 2,
For cell H3,
i need to lookup the value of cell C3 (which is "1124" on Day 4229), from B4 to F12 (till the bottom of the table).
As "1124" found on cell E12, which is Day 4220, the output on cell H3 will be 4229 minus 4220, which is "9"


For cell G4,
i need to lookup the value of cell B4 (which is "0905" on Day 4228), from B5 to F12. (till the bottom of the table)
As "0905" found on cell F6, which is Day 4226, the output on cell G4 will be 4228 minus 4226, which is "2"

what would be the best formula to get this done?
i've tried vlookup , index match , but could't figure out how to get it done. :(
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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