+ Reply to Thread
Results 1 to 7 of 7

Need to call up header names into one field for all cells which have a value from a row

  1. #1
    Registered User
    Join Date
    11-10-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Need to call up header names into one field for all cells which have a value from a row

    I've got a spreadsheet made up that I'm trying to make much more user friendly. I've been on this forum for the last month or so getting great help but I can't seem to find a thread that can help me with my problem.

    The table has employee names down the first column (about 250) the remaining columns indicate training each worker has received (First aid, fall arrest...B-AD). Rather than scan the whole table for a name then scroll across to find that worker's training I want to be able to enter the workers name (currently using a data validation drop down but I'm up for a better option), then the next cell over would populate with the header title of any cell in that row with a value in it. I'm at a loss for how to phrase the function. I've tried using lookups but I can only get the results of one cell. I imagine it will be a long string of IFcell(NOTBLANK(THEN "title")) but it's the formatting that's getting me

    From there I want to elaborate on valid and expired certification but I think with nesting current formatting arguments i can get that on my own once i have a bit of direction with the first issue.
    Attached Files Attached Files

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need to call up header names into one field for all cells which have a value from a ro

    Maybe something like this (I've avoide the firs 2 columns after a as your OP did not specify these, but the formula can be modified to accept them as well):
    Please Login or Register  to view this content.
    (I've added Alt+Enter to the formula to make the formula easier to read, but they can be edited out)
    You could use an UDF to just concatenate the whole range and remove trailing ","'s (there are several available on this site), but this was unexpressed in OP, so I gave you a formulaic answer, and maybe some else has a better one

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need to call up header names into one field for all cells which have a value from a ro

    `i did it with index rather than table refs and added a lookup for the last bit
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    11-10-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to call up header names into one field for all cells which have a value from a ro

    Thanks to both of you. I got an answer just after leaving work and as I don't have a copy of the file at home haven't been able to check it until just now. I think I'm going to use the second option only because it is more similar to what i normally do and can alter it as needed easier.

  5. #5
    Registered User
    Join Date
    11-10-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to call up header names into one field for all cells which have a value from a ro

    I'm not sure if this falls within the rules as it is a clarification on the formula not a separate question. Martin, with the formula for "the last bit" I'm having problems when a worker has tickets for multiple equipment (eg. fork lift and man lift). it seems the formula, which returns the value to the left of the found "-". however if there are multiple "-" found then it uses the average of the search table (eg. if fork lift is row 1 and man lift is row 5 the response is row 3). Besides splitting the column into 5 separate columns is there a solution.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need to call up header names into one field for all cells which have a value from a ro

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    is the bit matching in col j what do you want it to do,it only finds the first -and returns whatever is before it so if the cell contains antthing before
    F-09/15/2013
    or
    AL - 11/7/2014
    it will return that as ell and attempt to find it in the lookup table
    so xxxxxxx AL- 11/7/2014
    would try to lookup
    xxxxxxx AL which obviously doesnt exist but it would return
    Wheeled Loader
    ccccccc AL would return Counter Balanced Loader
    thats the way lookup works it tries to find a match if it cant it tries the next lowest value
    i cant see a simple way to look at multiple values in the same cell

  7. #7
    Registered User
    Join Date
    11-10-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need to call up header names into one field for all cells which have a value from a ro

    the only solution I could find was doing left then a right search but then i came across an entry with three in it so that made it the wrong solution. I've tried a few google searches to try and pull info out but they all pertain to single strings within a cell. I think I'm just going to have to bite the bullet and expand the table some more. I've attached the formula as it sits now. I've had to break it in half at First aid, it was coming back as too many arguments.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 08-29-2013, 10:07 PM
  2. [SOLVED] Help with Macro to Call Excel File with Variable Names
    By John_Day83 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2013, 05:10 AM
  3. [SOLVED] Call command buttons by user-defined names
    By Willardio in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-14-2013, 10:58 AM
  4. Field Criteria and Header row
    By taichi56 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2009, 05:47 PM
  5. [SOLVED] Call Names
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2005, 09:06 PM

Tags for this Thread

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