Results 1 to 5 of 5

If statement - does value in cell "a" occur anywhere in column "b".

Threaded View

  1. #1
    Registered User
    Join Date
    01-30-2009
    Location
    Portsmouth
    MS-Off Ver
    Excel 2007 (or 2003)
    Posts
    3

    If statement - does value in cell "a" occur anywhere in column "b".

    Sorry the title isn't clearer.

    I've got two lists - (text, but could be converted to number if easier - they're course codes which start with letter, but I could drop that)

    I need to take each value from the longer list (c. 900 items) & see if it occurs anywhere in the shorter list (c. 600 items) & to return a 1/0.

    It struck me that I should be using some form of nested "if" statement, but the actual logic required is a bit beyond me.

    Most of the functions seem to require an array to match against - and as far as I can see, I have to enter that array, I can't use a column to form it.

    I did try VLOOKUP - but that seemed to want me to return a value that it found in a different column - so I added a column of 1s ...

    but I'm clearly doing something wrong!

    At the moment, the two columns of numbers are on different sheets.

    I've got Office 2007 here, but have 2003 at home, if it works better in that.
    Last edited by Emmadw; 02-07-2009 at 12:35 PM. Reason: Worked! Many thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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