+ Reply to Thread
Results 1 to 4 of 4

Finding a number one of three columns

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    Maryland
    MS-Off Ver
    Excel 2011
    Posts
    2

    Finding a number one of three columns

    I have an excel sheet that I need a formula to find the matching number in 3 different columns and come back and tell me which column that number is in by putting a S,F or G.

    So in Column D I have the number and on different sheet (called AccountCodes) I have the 3 columns, A (which is what I want to be S), B (which is what I want to be F), and C (which is what I want to be G)

    Is there an easy way in excel to do this?

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Finding a number one of three columns

    I think this does it...

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by simarui; 03-18-2014 at 11:35 AM. Reason: typo in formula

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    Maryland
    MS-Off Ver
    Excel 2011
    Posts
    2

    Re: Finding a number one of three columns

    That almost worked, but I think it was pulling from the same sheet, and I have the 3 columns in another sheet. I changed it to the below, but that still isn't working. I'm get a #N/A as the result

    =IF(MATCH(D3,AccountCodes!A:C)=1,"S",IF(MATCH(D3,AccountCodes!A:C)=2,"F",IF(MATCH(D3,AccountCodes!A:C)=3,"G")))

  4. #4
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Finding a number one of three columns

    Try:

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


    if that doesn't work upload a sample with your broken formula...

+ 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. [SOLVED] Finding a number in a column and returning the cell 5 columns to the left
    By bbrunof in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2013, 04:16 PM
  2. Replies: 4
    Last Post: 03-07-2013, 11:42 AM
  3. Replies: 3
    Last Post: 06-27-2012, 10:12 PM
  4. Finding the Max in a number of columns
    By BlahBlahBlahBlahBlah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2012, 07:31 AM
  5. Finding the total number of matches within two columns?
    By mikexcel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2007, 02:47 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