Lookup for value with multiple IDs repeating in same columen

pupek

New Member
Joined
Nov 13, 2018
Messages
1
Hello,

I am new here and hope you can help with with my problem.

We have an output from attendance system (is mostly up to 200-300 rows) and need this data to use/input in another file without adding in manually and checking if assigned values to the correct cell.

I create connection with that file and want to work via refresh so I am looking for formula that will check "Line 1,2,..." -> then if its "Internal/Eternal/Temporary" -> and then specific group "A,B,C" and insert value from 2nd column.

Issues I can't do anything about it:
- all 3 conditions are in same column
- 2 IDs are being multiplied such as Internal/External or A,B,C ..
- locations are not fixed e.g. can be that one day there will be no External employee from Line 1 and subgroup B (so this row wont be in the output) so then also the only changeable condition such as Line 1,2... can be in another row

Found somewhere solution with INDEX/MATCH/INDIRECT formulas for 2 conditions such as:
=INDEX(B:B;MATCH(A4;INDIRECT("A"&MATCH($A$2;A:A;0)+1&":A50000");0)+MATCH($A$2;A:A;0))

Couldnt find out how to extend it into 3 condition system and dnt quite understand that INDIRECT formula there.

Line 1
Internal
A5
B6
C8
External
A3
B4
C9
Line 2
Internal
A1
B2
C4
External
A2
B2
C2
Temporary
A4
B3
C1

<tbody>
</tbody>
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,215,028
Messages
6,122,749
Members
449,094
Latest member
dsharae57

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