ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Column number form an array (https://www.excelbanter.com/excel-discussion-misc-queries/241715-column-number-form-array.html)

michelle439731

Column number form an array
 
Afternoon,

I would like to know how to output the column number from a particular array
that a specific output is found in.

For example: what is the column number of X in the following array
V, W, X, Y, Z?
3

Thank you!

Michelle

T. Valko

Column number form an array
 
Try this:

=MATCH("x",{"V","W","X","Y","Z"},0)

Or, if the entry is in a range of cells:

=MATCH("x",V1:Z1,0)

--
Biff
Microsoft Excel MVP


"michelle439731" wrote in message
...
Afternoon,

I would like to know how to output the column number from a particular
array
that a specific output is found in.

For example: what is the column number of X in the following array
V, W, X, Y, Z?
3

Thank you!

Michelle




michelle439731

Column number form an array
 
Smashing.

Thanks ever so.

Mwah!

StuartBisset

Column number form an array
 
Michelle

You should try to explain your problem a bit more thoroughly if you
want to get a good quality answer to your problem. Asking about an
array makes me think that you are asking a vba question, in which case
you should probably ask it in this http://groups.google.com/group/micro...ramming/topics
discussion group. You should mention what version of excel you are
using?, how the array is populated?, is it a vba solution you need?,
is it a formulae solution you need?, is the data held in a worksheet?
Its very difficult to understand what you are trying to do from what
you have written.

Regards

Stuart Bisset
www.insightmodelling.com





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

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