+ Reply to Thread
Results 1 to 4 of 4

Mark intersecting cell "Yes" if both Column and Row Headers exist in raw data as a pair

  1. #1
    Registered User
    Join Date
    03-15-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    25

    Mark intersecting cell "Yes" if both Column and Row Headers exist in raw data as a pair

    I have attached a sample workbook showing what I want to happen. There are two sheets ("RawData" and "TeamReport"). "RawData" has Machines in Column A and Applications in Column B. "TeamReport" has Machines across the top and Applications down the left side. I need a macro to mark the cell where the column and row meet as "Yes" if the specific application is on the specific machine. The cells I have blacked out are placeholders for additional data. I will gladly work on the code myself if someone can point me in the right direction but I can't figure out how to begin to implement this. Any help is appreciated...
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Mark intersecting cell "Yes" if both Column and Row Headers exist in raw data as a pai

    Is there a specific reason why you want a macro? You could also do it using a formula.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Mark intersecting cell "Yes" if both Column and Row Headers exist in raw data as a pai

    You could do that relatively easily with a worksheet formula if you want, i.e. this formula in F7 copied across and down

    =IF(COUNTIFS(RawData!$A:$A,F$1,RawData!$C:$C,$A7),"YES","")
    Audere est facere

  4. #4
    Registered User
    Join Date
    03-15-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    25
    this is only part of a much larger macro and will be a repetitive process. Your formula appears to work but I need it in VBA.

+ 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