+ Reply to Thread
Results 1 to 3 of 3

Read Sheet1!A:A then mark corresponding cells in Sheet2

  1. #1
    Registered User
    Join Date
    08-24-2011
    Location
    Wimbledon, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Read Sheet1!A:A then mark corresponding cells in Sheet2

    I'm after a formula/VB script to perform a fairly simple task (hopefully).

    I need it to,
    1 - read Sheet1!A:A
    2 - then mark (with a 1) on sheet2 in the corresponding cell

    e.g the data in cell Sheet1!A1 would mark Sheet1!B2

    There will be another 100 more branches to be input to Sheet1!A:A

    Hope this makes sense.
    Many thanks

    Ashley
    Attached Files Attached Files
    Last edited by ashleysandell; 08-24-2011 at 07:07 AM. Reason: solved

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Read Sheet1!A:A then mark corresponding cells in Sheet2

    No VBA needed.

    In B2: =--ISNUMBER(MATCH($A2&","&"yes"&",,", Sheet1!$A:$A, 0))
    In C2: =--ISNUMBER(MATCH($A2&",,"&"no"&",", Sheet1!$A:$A, 0))
    In D2: =--ISNUMBER(MATCH($A2&",,,"&"abstain", Sheet1!$A:$A, 0))

    Now copy those three cells downward.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-24-2011
    Location
    Wimbledon, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Read Sheet1!A:A then mark corresponding cells in Sheet2

    Just what I needed!
    Thankyou JBeaucaire, your a ledgend!

+ 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