+ Reply to Thread
Results 1 to 4 of 4

data located in column

  1. #1
    Registered User
    Join Date
    07-16-2007
    Location
    San Francisco, CA
    MS-Off Ver
    2010
    Posts
    93

    data located in column

    HI all, I have a table with information in it,
    trt asp crd drd eff fog
    .02
    .05
    .70
    .85


    and given this table I would like to know if there is a formula that if I want to know what column line 1 had data in, It would return either the column number or "trt" , line 2 would display "asp", line 3 would be "drd": and line 4 would be "fog"

    Would appreciate any assistance in this matter.
    Thsnks once again,
    James
    Last edited by jwongsf; 03-16-2010 at 11:44 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: data located in column

    =LOOKUP(9.99999999e+307,$A2:$F2,$A$1:$F$1)

    where A1:F1 contain the titles and A2:F2 contain the first line of data.

    Formula can be copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-16-2007
    Location
    San Francisco, CA
    MS-Off Ver
    2010
    Posts
    93

    Re: data located in column

    Thanks however in the cell that it's check for already has a zero, therefore I would need to check for <0.

    Thanks
    James

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: data located in column

    How about this, then:

    =INDEX($A$1:$F$1,MATCH(MAX(A2:F2),A2:F2,0))

    copy down.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1