+ Reply to Thread
Results 1 to 4 of 4

Results of cell depending on column

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Results of cell depending on column

    Hi,

    This should be a simple one but for some reason I can't get my head round what I'm doing.

    I've attached the spread sheet as an example.

    What I want to do is populate Cell O with a code (Codes are shown on the second tab) depending on which column the value is in.

    For example for row 2. the code in column O would be 07-005, and the code for row 3 would be 01-007

    HELP!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-11-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    142

    Re: Results of cell depending on column

    you can type in cell O2
    =VLOOKUP(OFFSET(INDEX(C2:L2,1,MATCH(MAX(C2:L2),C2:L2,1)),-ROW()+1,0),Sheet2!$A$1:$B$10,2,0) and drag down

  3. #3
    Registered User
    Join Date
    04-29-2013
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    42

    Re: Results of cell depending on column

    That is perfect! Been racking my brains all morning!

    Thank you

  4. #4
    Registered User
    Join Date
    03-14-2015
    Location
    Hamburg
    MS-Off Ver
    7
    Posts
    32

    Re: Results of cell depending on column

    Hi there,

    what about such an approach:

    =INDEX(Sheet2!$B$1:$B$10;MATCH(INDEX($C$1:$M$1;MATCH(N2;$C2:$M2;0));Sheet2!$A$1:$A$10;0)) and drag it down

    of course, it is a bit confusing, too.... but, I think under the bottom line it is the more simple way to do it since I just use index() and match() only....

    kind regards from Hamburg

    Henning

+ 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: 6
    Last Post: 05-16-2014, 03:03 PM
  2. [SOLVED] function that returns interest with different values depending previous cell's results
    By managingcrap in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-09-2013, 03:15 AM
  3. [SOLVED] How to get results depending of a text in other column?
    By rwilson91 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2013, 09:11 AM
  4. Replies: 3
    Last Post: 08-21-2013, 07:10 PM
  5. Macro that is column specific & changes cell color depending on cell contents
    By zurispowell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2012, 05:03 PM
  6. [SOLVED] Multiply results of cell depending on number in cell
    By sparky24 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-21-2012, 02:13 PM
  7. Sum of a column depending on data in another cell
    By Atrox321 in forum Excel General
    Replies: 2
    Last Post: 01-07-2009, 05:35 PM

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