+ Reply to Thread
Results 1 to 11 of 11

I need help looking up a value in a row, and reporting the column title and the value

  1. #1
    Registered User
    Join Date
    06-29-2006
    Posts
    85

    I need help looking up a value in a row, and reporting the column title and the value

    I have a sheet I am working on, and I dont know how to look up by a row

    basically
    I need to Look at a known Row, find the Column that is populated with a number value, and then report the value in a cell at the top of the column and the # in the populated row


    Link to the Document:

    *Link Removed because somebody else posted the file for me a couple of posts down*


    when you donwload it...

    the formula will end up in cells on Page "NC-40"

    I want to look at a row on Page "Input List" that matches the vale in the upper left corner of each box
    meaning the Box labeled 1, would look at "input list" Row 4
    then it would look for a value in E4 thru N4
    it would find that a value of "1" is in Cell E4 and would report "Brown 1" in the cell I pick on the NC-40 Page

    Even more ideal...if its possible to do this...
    it would just report the value "1" and change the Cell to the color in the row(meaning the formula cell would change itself to match the Brown Color)

    thanks if you can help...
    I'm currently baffled by how to make this work.
    Last edited by soundengineer; 01-27-2013 at 01:24 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,640

    Re: I need help looking up a value in a row, and reporting the column title and the value

    Not everyone, me included, will download stuff from the cloud. Please upload the sample data to the forum

    Thanks, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: I need help looking up a value in a row, and reporting the column title and the value

    Ohh, In fact I didnt pay any attention to the risk till geting the warning. Thank God there is nothing happenned to me...
    Anyway I'd like to share
    Attached Files Attached Files
    Quang PT

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,640

    Re: I need help looking up a value in a row, and reporting the column title and the value

    @bebo021999 : I did say "not everybody" probably little to no risk, but who knows. The forum still gets spam and stuff.


    Regards, TMS

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: I need help looking up a value in a row, and reporting the column title and the value

    in cell 'NC-40'!A2 (which is a merged cell, which is a venial crime):

    Please Login or Register  to view this content.
    this will just show 'Brown 1' etc., and not colour the cell.

    encase the above formula as IFERROR(above_formula,0) in case you do not want to see #N/A errors.

    UPDATE:

    use a set of Conditional Formatting rules to colour result cells.

    if you have 2007 or higher, you could use this method.

    highlight cells A1 through J18 -- after you have executed the above formula in appropriate cells. then, navigate to:

    Home > Conditional Formatting > Highlight Cells Rules > Text That Contains

    in the resulting box, type "Brown" (without the quotes). in the adjacent drop-down, select Custom and setup a formatting. do this for each colour that you want to setup, and for each page that you want to setup CF for.
    Last edited by icestationzbra; 01-27-2013 at 02:27 AM. Reason: CF suggestion
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  6. #6
    Registered User
    Join Date
    06-29-2006
    Posts
    85

    Re: I need help looking up a value in a row, and reporting the column title and the value

    Thank you, that seems to work very well


    is there any way I can make the cell change color too?



    and if its a Venial Crime... then why make a big deal about it.....am I forgiven..LOL

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: I need help looking up a value in a row, and reporting the column title and the value

    Trevor, its more than just "Not everyone, me included, will download stuff from the cloud"...its also "Not everyone, me included, can download stuff from the cloud" Some company's (yes, I do a lot of work here from my work PC) restrict access to certain web sites
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,640

    Re: I need help looking up a value in a row, and reporting the column title and the value

    @FDibbins: ah, very true. Working for myself, from home, I tend to forget about the corporate shackles

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

    Re: I need help looking up a value in a row, and reporting the column title and the value

    Quote Originally Posted by icestationzbra View Post
    ...use a set of Conditional Formatting rules to colour result cells.
    Post #5

    Generally, to actually get the cell color requires VBA, so to color the cell, use CF and apply the rules that made the original cells the color they are..

    I think 2010 or 2013 may have a way of finding the color out, but you would still have to use CF to apply...I think ..

    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

  10. #10
    Registered User
    Join Date
    06-29-2006
    Posts
    85

    Re: I need help looking up a value in a row, and reporting the column title and the value

    the conditional formatting works well in my case
    I Just made a set of rules for the cells that needed to see color according to labels

    so any cell that contains the word "Red" would get colored Red, any cell that contains the word "Blue" would get colored blue.
    takes one rule per color per page that needs it...so theres a handfull of rules... but it works well and does what I need it to do

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

    Re: I need help looking up a value in a row, and reporting the column title and the value

    that's a good solution, Congrats !

+ 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