Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

If name exists in a table then return value from another column or row

I want to find the corresponding header and position for each person in the attached table. Basically I would like a formula in the green cells to pull the corresponding position number to the right of each name in column E and the bar name in row A. What is the best way to do that? For example, Gab would be Bar 2 and position 2, Nick would be Bar 4 position 3, etc.

Thanks!

https://docs.google.com/spreadsheets/d/1JXYXkN8ovwcJvVWN5-kHb0-N8sFIbVIP5qwesUPLCQw/edit?usp=sharing

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You may try:

Bar

=tocol(index(if(A2:D7=A12,A1:D1,)),1)

Position

=tocol(index(if(A2:D7=A12,E2:E7,)),1)

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading