Need help. I think the OFFSET is the correct function but I don’t have the correct imbedded formulas.

Willingtolearn

New Member
Joined
Jul 18, 2021
Messages
5
Office Version
  1. 2019
Platform
  1. Windows
Here is my situation. I am trying to use a list of employees in one worksheet (portfolio) to identify the correct data range in another worksheet (Output) that is associated with their name. From this range I need to collect current salary, company 401k Match and Company Paid Health Insurance and place this data in the portfolio worksheet next the employees name. I know OFFSET would enable me to find the correct cell in the Output worksheet, using the cell with the employee's name as the starting point. My issue is I cannot figure out how to use the list on the portfolio worksheet to search for the same employee name in the Output worksheet and return the correct data. One other issue is that the data in the Output worksheet is not fixed month to month. It is imported data and if there are new employees or resigned employees the data shifts in the worksheet. For example if a new employee is hired, named Albert, his information will be imported into the Output worksheet before John and other employees.

Can anyone help me with the correct formula to incorporate the required data into the respective cells in the Portfolio worksheet?

EMP Ben Test.xlsx
ABCDEFG
1
2
3EmployeeCurrent PayCo. Paid Health InsuranceCo. Match
4John0
5Nancy2020 April
6Roger
7Sally
8Jill
9Jack
10Allen
11Tony
12Seymour
13
14
15
16
17
18
Portfolio
Cell Formulas
RangeFormula
E4:E5E4=OFFSET(Output!A$2,MATCH(C4,Output!$2:$2,0)+3-1,2)



EMP Ben Test.xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAF
1
2Employee:JohnEmployee:NancyEmployee:Roger
3
4Starting Salary:$60,000Company Paid Health Insurance:$2,208Starting Salary:$50,000Company Paid Health Insurance:$2,928Starting Salary:$35,000Company Paid Health Insurance:$2,208
5Current Salary :$71,250Current Company 401K Match:$3,563Current Salary :$81,917Current Company 401K Match:$4,096Current Salary :$36,250Current Company 401K Match:$1,813
6Potential Salary :$75,000Potential Salary :$85,000Potential Salary :$38,000
7
8
9Health Care401k MatchPayHealth Care401k MatchPayHealth Care401k MatchPay
102020 December$184$312.50$6,250.002020 December$244$358.33$7,166.672020 December$184$158.33$3,166.67
112020 November$184$312.50$6,250.002020 November$244$358.33$7,166.672020 November$184$158.33$3,166.67
122020 October$184$312.50$6,250.002020 October$244$358.33$7,166.672020 October$184$158.33$3,166.67
132020 September$184$291.67$5,833.332020 September$244$358.33$7,166.672020 September$184$158.33$3,166.67
142020 August$184$291.67$5,833.332020 August$244$358.33$7,166.672020 August$184$158.33$3,166.67
152020 July$184$291.67$5,833.332020 July$244$329.17$6,583.332020 July$184$145.83$2,916.67
162020 June$184$291.67$5,833.332020 June$244$329.17$6,583.332020 June$184$145.83$2,916.67
172020 May$184$291.67$5,833.332020 May$244$329.17$6,583.332020 May$184$145.83$2,916.67
182020 April$184$291.67$5,833.332020 April$244$329.17$6,583.332020 April$184$145.83$2,916.67
192020 March$184$291.67$5,833.332020 March$244$329.17$6,583.332020 March$184$145.83$2,916.67
202020 February$184$291.67$5,833.332020 February$244$329.17$6,583.332020 February$184$145.83$2,916.67
212020 January$184$291.67$5,833.332020 January$244$329.17$6,583.332020 January$184$145.83$2,916.67
22
23
24
25
26
27
28
29
Output
Cell Formulas
RangeFormula
F5,Z5,P5F5=SUM(G10:G21)
J4,AD4,T4J4=SUM(E10:E21)
J5,AD5,T5J5=SUM(F10:F21)
Z10:Z21,P10:P21,F10:F21F10=0.05*G10
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
How about
+Fluff 1.xlsm
ABCDEFG
1
2
3EmployeeCurrent PayCo. Paid Health InsuranceCo. Match
4John7125022083562.5
5Nancy81916.6729284095.833
6Roger3625022081812.5
7Sally   
8Jill   
9Jack   
10Allen   
11Tony   
12Seymour   
13
Lists
Cell Formulas
RangeFormula
E4:E12E4=IFNA(INDEX(Output!$A$5:$AH$5,MATCH($C4,Output!$A$2:$AH$2,0)+2),"")
F4:F12F4=IFNA(INDEX(Output!$A$4:$AH$4,MATCH($C4,Output!$A$2:$AH$2,0)+6),"")
G4:G12G4=IFNA(INDEX(Output!$A$5:$AH$5,MATCH($C4,Output!$A$2:$AH$2,0)+6),"")
 
Upvote 0
Solution
Thank you Fluff. That was what I was looking for to solve my issue. I wasn't thinking about nested Index and match.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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