ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Which column in an array of columns (https://www.excelbanter.com/excel-worksheet-functions/225369-column-array-columns.html)

dk

Which column in an array of columns
 
Dear Experts,
What is the formula that would return the current column index within an
array of columns?
I appologize if my terms are incorrect.
Example: In an array or range of columns from C:F, the formula in column D
would = 2, Column F = 4.
Thanks.
DK



Bernie Deitrick

Which column in an array of columns
 
=COLUMN()-COLUMN($C$1)+1

HTH,
Bernie
MS Excel MVP


"DK" wrote in message ...
Dear Experts,
What is the formula that would return the current column index within an array of columns?
I appologize if my terms are incorrect.
Example: In an array or range of columns from C:F, the formula in column D would = 2, Column F =
4.
Thanks.
DK




dk

Which column in an array of columns
 
Thanks Bernie,
I see that I only need to identify the starting column and not the range of
columns.
Thanks again.
DK

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
=COLUMN()-COLUMN($C$1)+1

HTH,
Bernie
MS Excel MVP


"DK" wrote in message
...
Dear Experts,
What is the formula that would return the current column index within an
array of columns?
I appologize if my terms are incorrect.
Example: In an array or range of columns from C:F, the formula in column
D would = 2, Column F = 4.
Thanks.
DK







All times are GMT +1. The time now is 09:52 PM.

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