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.

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Line 1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Internal
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]5 [/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]External[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]Line 2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Internal[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]External[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Temporary[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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