Instead of nested IF statements - Simple question

Dart180

New Member
Joined
Aug 8, 2017
Messages
7
Hello!

I want to return data from a certain column based on an IF statement.

It is very simple but I have 200+ columns of data so I can not use multiple IF statements.

See the attached picture for the best explanation.

Picture: https://imgur.com/a/Q5yzg

How can I solve this?

Thanks for you'r support guys!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Could not find a way to attach the document but I will write the current solution here:

=IF(A1=1,B1, IF(A1=2,C1, IF(A1=3,D1....

Basically, I want to type in the name/nr of the column and return its value.
 
Upvote 0
Could not find a way to attach the document but I will write the current solution here:

=IF(A1=1,B1, IF(A1=2,C1, IF(A1=3,D1....

Basically, I want to type in the name/nr of the column and return its value.

Is this what you need?

=INDEX($B$1:$Z$1,$A1)
 
Upvote 0

Forum statistics

Threads
1,216,113
Messages
6,128,905
Members
449,478
Latest member
Davenil

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