+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Output text based on a value in two separate columns

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    6

    Output text based on a value in two separate columns

    Hello,

    I am trying to make a spreadsheet for work. Basically I'm trying to make a hold over list where at the top of the document it tells you who the next person to be frozen over is. The spreadsheet has three columns (B,C,D) and 16 rows (2-17). Column B is the person's name, column C is their rank #, and column D is the number of times they have been held over. What I need is the person with the least holdovers to be listed as the next holdover BUT I also need their rank # to be a tie breaker (lower rank gets held over first). Can someone help?

    This wouldn't be necessary except that we have three supervisors and only two (max) are at work at any given time. It is difficult to communicate who is next to be held over. On top of that, we have people who volunteer to work OT and I need to count that as a holdover as a reward for volunteering. This will be the easiest way to document and reference who needs held over. Your help will be appreciated.

    Thanks in advance.
    Last edited by NBVC; 01-09-2012 at 03:56 PM.

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

    Re: Output text based on a value in two separate columns

    Try:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER.
    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
    01-09-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Output text based on a value in two separate columns

    Dont seem to quite be getting it. Please see the attached example sheet to see what I am doing wrong.
    Attached Files Attached Files

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

    Re: Output text based on a value in two separate columns

    go to cell B1, hit F2, then hold the CTRL and SHIFT keys down, and hit ENTER.... this is an array formula

  5. #5
    Registered User
    Join Date
    01-09-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Output text based on a value in two separate columns

    Thank you! This is what I need. The only issue is that it is selecting the person with a higher rank. If you look at the example worksheet it is outputting "Person I" where it should be outputting "Person P." They both have 0 holdovers however "Person I" is senior to "Person P." Could you switch the order from descending to ascending? Thanks again.

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

    Re: Output text based on a value in two separate columns

    I assumed lower Rank number meant lower rank....

    Try:

    =INDEX($B$4:$B$19,MATCH(1,($C$4:$C$19=MAX(IF($D$4:$D$19=MIN($D$4:$D$19),$C$4:$C$19)))*($D$4:$D$19=MIN($D$4:$D$19)),0))

    then hold the CTRL and SHIFT keys down, and hit ENTER

  7. #7
    Registered User
    Join Date
    01-09-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Output text based on a value in two separate columns

    Thank you. Problem solved

+ 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