Help with lookup

kris02

New Member
Joined
Jan 24, 2017
Messages
4
Hi, I have the following data. I select level and give the flags as Y or N. if I select level 1 and flag as N, it should show the points related to that level in points column for each activity else it should show the points related to next level in points column. Following is the data I have.
Level
ActivityLevel 1Level 2Level 3Level 4FlagPoints
Task 10.1670.1390.1220.111
Task 20.250.2380.2250.213
Task 30.330.3170.30.283
Task 41.1011.0030.9240.859

<tbody>
</tbody>

<tbody>
</tbody>
Following is the expected result for level 1 and level 3 with different flags.

Level 1Level 3
FlagPointsFlagPoints
N0.167Y0.111
N0.25N0.225
Y0.317Y0.283
N1.101N0.924

<tbody>
</tbody>

Help me with the formula. I could write half. I mean for flag N but how to write for flag Y as it has to display the value for next level.

Thanks!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I don't see any values for flag in your data table nor do I see any tasks in your results table. Am I missing something?
 
Upvote 0
I don't see any values for flag in your data table nor do I see any tasks in your results table. Am I missing something?

Hi, I have given different flags and the expected points for level 1 and level 3 in the 2nd table. If I give those flags for level 1 and level 3 it should show the points as shown in table 2.

In table 1, based on the flags and level which are to be input, points are to be displayed.

Please let me know if I am not clear.
 
Upvote 0
In the 2nd table, 4 rows for 4 different tasks (1 to 4). Sorry missed adding activity column in 2nd table
 
Upvote 0
This will do that I think. I pasted data table in A1:E6 and the table to fill in in A9:B14. In B11 and copy down:

=INDEX($A$2:$E$6,ROWS($A$1:A2),MATCH(B$9,$A$2:$E$2,0)+(A11<>"N"))
 
Upvote 0
This will do that I think. I pasted data table in A1:E6 and the table to fill in in A9:B14. In B11 and copy down:

=INDEX($A$2:$E$6,ROWS($A$1:A2),MATCH(B$9,$A$2:$E$2,0)+(A11<>"N"))


Thank you very much. It worked.

If you don't mind, can you explain how this formula works. Please excuse my ignorance.
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,175
Members
449,071
Latest member
cdnMech

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