ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula for Column Number (https://www.excelbanter.com/excel-discussion-misc-queries/141647-formula-column-number.html)

FARAZ QURESHI

Formula for Column Number
 
Is there any way to find out the column number within an array that matches
with the lookup value like the "Match" Function?

Ron Coderre

Formula for Column Number
 
If you post your actual scenario, you'll get a more tailored response.

Absent that.....here's one way:

With
A1: (a value to lookup)

C1:Z1 contains values

This formula returns the column number of the first item in C1:Z1 that
matches A1
B1: =MATCH(A1,C1:Z1,0)+COLUMN(B1)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"FARAZ QURESHI" wrote:

Is there any way to find out the column number within an array that matches
with the lookup value like the "Match" Function?



All times are GMT +1. The time now is 05:49 PM.

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