Formula Help

vharp91

New Member
Joined
Jul 24, 2020
Messages
15
Office Version
  1. 2016
Platform
  1. Windows
Hello, I need help with a formula that will lookup vertically as well as horizontally to pull in a value into cell I70 on the first screenshot from what is entered on the spreadsheet in the second screenshot. I would like it to function so that when the value highlighted in cell I5 in the first screen shot is changed, it will update the value in cell I70 with the most recent data. In other words, when 7 is entered into cell I5 of the spreadsheet in the first screen shot, it will pull in 5,575 from cell K8 in the second screenshot into cell I70 in the first screenshot. When 8 is entered into cell I5 of the spreadsheet in the first screen shot, it will pull in 5,382 from cell L8 in the second screenshot into cell I70 into the spreadsheet in the first screenshot. So every time cell I5 in the first screenshot is updated, it will pull in the number that matches that department ID (column C in first screenshot and column B in second screenshot) as well as the matching pay period # in cell I5 in the first screenshot and row 5 of the second screenshot.

Screen shot 1:
1697584516628.png


Screen shot 2:
1697584784375.png
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
See if something like this is what you want. You will have to adjust the ranges to match your data.

BTW, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

vharp91.xlsm
BCDEFGHIJKLM
5123456789
6Dept
7
8105678704887372956393460396061734680702069
933333201019898133696140831431502143319726
10987654765923952811951936019186792124418154
Sheet2


vharp91.xlsm
CI
57
6Dept
7
81056787346
999999#N/A
109876547921
11333335021
Sheet1
Cell Formulas
RangeFormula
I8:I11I8=INDEX(Sheet2!E$8:Y$1000,MATCH(C8,Sheet2!B$8:B$1000,0),I$5)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,219
Messages
6,123,680
Members
449,116
Latest member
HypnoFant

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