+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Check for text from a list then return a specific value if matched

  1. #1
    Registered User
    Join Date
    11-30-2009
    Location
    NSW
    MS-Off Ver
    Excel 2007
    Posts
    8

    Check for text from a list then return a specific value if matched

    Hey all

    I'm back trying to get a race horse spreadsheet working. I want to add some data to a sheet where I have the name of a race meeting, depending on where that meeting is held means it fits a certain criteria for other functions I am running.

    I have a seperate "List" sheet which holds, amoung other lists, a list of meeting names in 3 columns. List A1:A20 is metropolitain meetings (IE Names of race courses. List B1:B20 is Provincial meetings & list C1:C20 is bush meetings.

    On another sheet called "Meetings" I have rows of meeting names & horse details etc. Basically if a meeting on this sheet is from one of the three lists on the "List" sheet I would like a cell in the same row as that record to return whichever list heading it matches, IE if the meeting name was a match to a meeting name on the lists from Metro then I want "Metro" to be returned.

    Also, the date is on the meetings sheet & I want to return either "Weekend" or Weekday" depending on the date of that meeting.

    Attached is a cut down sample of what I mean. I hope its self explainitory.

    EDIT: I forgot to mention that if the meeting name does not match any on the lists then it should return "Country" (I did this because the list of country meetings is in the hundreds as opposed to a few for each of the 3 other types.

    Second EDIT: Geeze, Sorry, I forgot to also mention I'm using Excel 2007.
    Attached Files Attached Files
    Last edited by StoneGypzi; 01-01-2010 at 08:44 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Check for text from a list then return a specific value if matched

    I confess I'd probably use a single column of helpers eg

    Please Login or Register  to view this content.
    note: for State where type is Country I've left as "?" as there is seemingly no way of determining the appropriate value.

  3. #3
    Registered User
    Join Date
    11-30-2009
    Location
    NSW
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Check for text from a list then return a specific value if matched

    DonkeyOte, thats great mate!

    I didn't envisage the problem with country meetings being unable to determine state, looks like I may have to add the country meetings list (Man, I was hoping to avoid that as there are hundreds of them) oh well, it works & it will do exactly what I need when complete.

    Thank you so much for your help here.

+ 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