Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Is there a function to get column # of cell with matching value

Hi,

I would like to write a function that will bring out the column index number
for a cell containg a particulat lot #, i.e.

A B C
1 3 366
5 2 22


What function do I need to use that will determine the column index # for
the cell containing the value of "366"??


Thanks,

Neslihan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Is there a function to get column # of cell with matching value

Try this array formula** :

=MAX((A1:C2=366)*COLUMN(A1:C2))

If there are multiple instances of 366 the formula will return the rightmost
column number.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Neslihan" wrote in message
...
Hi,

I would like to write a function that will bring out the column index
number
for a cell containg a particulat lot #, i.e.

A B C
1 3 366
5 2 22


What function do I need to use that will determine the column index # for
the cell containing the value of "366"??


Thanks,

Neslihan



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Matching down a column Tsunami3169 Excel Worksheet Functions 3 August 1st 07 02:47 PM
matching from one column to another JMay Excel Discussion (Misc queries) 0 November 29th 06 08:49 PM
matching from one column to another jbressma Excel Discussion (Misc queries) 0 November 29th 06 08:04 PM
find a cell matching separate column and row values LQEngineer Excel Worksheet Functions 2 July 26th 06 07:10 AM
Matching data and linking it to the matching cell yvonne a via OfficeKB.com Links and Linking in Excel 0 July 13th 05 07:30 PM


All times are GMT +1. The time now is 12:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"