ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Selecting data from a specific column (https://www.excelbanter.com/excel-discussion-misc-queries/250455-selecting-data-specific-column.html)

Charp

Selecting data from a specific column
 
I have data in columns with month headers. I want to input a specific month
and return data for each row. For example, in A1, I have selected "Feb" and
want to return the data from column D. This will be 12 months so a nested IF
statement does not work.

1 A B C D E
2 Feb Type Jan Feb Mar
3 LR 87.55 126.77 111.63
4 PC 3.91
5 RE 98.23 29.75
6 SP 92.93

Any help will be greatly appreciated!

Charp


Luke M

Selecting data from a specific column
 
In A2:
=INDEX(C2:N2,1,MATCH(A$1,C$1:N$1,0))

Copy down as needed.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Charp" wrote:

I have data in columns with month headers. I want to input a specific month
and return data for each row. For example, in A1, I have selected "Feb" and
want to return the data from column D. This will be 12 months so a nested IF
statement does not work.

1 A B C D E
2 Feb Type Jan Feb Mar
3 LR 87.55 126.77 111.63
4 PC 3.91
5 RE 98.23 29.75
6 SP 92.93

Any help will be greatly appreciated!

Charp



All times are GMT +1. The time now is 02:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com