Choosing the correct formula

Potgieterloraine

New Member
Joined
Jun 17, 2021
Messages
4
Office Version
  1. 2013
Platform
  1. Windows
Good day. I need help please to choose the correct formula to use.

I want to use a vlookup formula to pull through a specific value from a specific column on another sheet but there are multiple arrays (named ranges) in one row.

What I am trying to do. On the sheet below in K12 I want to pull through the value in G4 on another sheet (pasted below). The problem is columns are deleted or added on the 2nd sheet so I want to compare all the ranges except for doing a normal vlookup to only 1 named range. The 2nd sheet contains 18 named ranges that I want to include in the formula.
The same formula will then apply to pull through the value of H4 on the 2nd sheet into L12 on the first sheet and then again in M12 as well.

1623933993171.png


This is the sheet where I want to pull the data from. There are 18 name ranges in row 4 that I want to include in the formula.
1623933703780.png
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGHIJKLMNOPQ
1
2
3
4HM0054500HM0074617
5
6
7
8
9HM0054500
10HM0074617
11
Lists
Cell Formulas
RangeFormula
C9:E10C9=INDEX(G$4:Q$4,MATCH($A9,$D$4:$L$4,0))
 
Upvote 0
Solution
In what way?
I have 2 sheets. I want to pull the values from the 2nd sheet into the 1st sheet

This is Sheet 2. In total there are 18 employees ( I am only using 2 for this example).

D5 and K5 is the matching indicators. I want to pull the value of G5 from the 2nd sheet to sheet 1 in K12. H5 on sheet 2 must go to L12 on sheet 1 and I5 on sheet 2 must go to M12. The problem is on the 2nd sheet employees are added and removed so HM005 might not always be in C:I on the 2nd sheet therefore I need to ad a formula to search for the information anywhere on sheet2.

1624119250311.png




This is sheet 1

1624119471773.png
 
Upvote 0
But that's what the formula does.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,758
Messages
6,126,713
Members
449,332
Latest member
nokoloina

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