+ Reply to Thread
Results 1 to 5 of 5

IF query between worksheets

  1. #1
    Registered User
    Join Date
    08-07-2008
    Location
    Sydney
    Posts
    3

    Question IF query between worksheets

    Hey all,

    I have no idea how to do this so i'm hoping someone can write me up a little macro

    I have one worksheet in which i have the names of companies that have contracted to my company this year. The worksheet has a number of columns but the important ones are Company Name and Status.

    I then have another worksheet within the same excel document which is in preparation for next year. It has a number of columns also however the important ones in this sheet are Company Name and Prev Exhib. The column "prev exhib" is a data validation field with the possible options from the list being yes or no.

    I need to find a way that will pre populate the 'previous exhibitor' column in the second sheet with the answer 'yes', IF the word contracted appears in the column 'status' on the first sheet and obviously matches this with the correct company name. I then need all the other boxes to display 'no'.

    I have included an example of the workbook and i hope this all makes sense.

    Cheers,

    Jnr
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Jnr

    Try this.

    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    08-07-2008
    Location
    Sydney
    Posts
    3
    Thanks mate,

    Not quite it though, 'yes' should only appear in sheet 2009 if there is a value in status from sheet 2008. If there is no value then 2009 should appear 'no'...

    any thoughts?

    Cheers,

    Jr

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Jr

    Sorry, missed the contracted bit. Try this.

    Please Login or Register  to view this content.

    rylo

  5. #5
    Registered User
    Join Date
    08-07-2008
    Location
    Sydney
    Posts
    3

    Thankyou!

    That works brilliantly...

    You've saved me going through about 10,000 records and having to do that myself

+ 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