+ Reply to Thread
Results 1 to 7 of 7

Match Column and Row

  1. #1
    Registered User
    Join Date
    08-18-2017
    Location
    Charlotte, NC, USA
    MS-Off Ver
    Microsoft 2016
    Posts
    74

    Match Column and Row

    Hello,

    I'm wondering if someone can help me figure this out. I'm trying to find the data in a given table and place it into another table that is separated by Month and Year (Month is Row and Year is Column). The attached file will explain it better. There are 2 tables, A and B. Please help me figure out how I can fill in the blank table.

    Thank you for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Match Column and Row

    Hi
    In the blue section:

    c3 and across:
    =LARGE((MONTH(B3)=MONTH($B$18:$AK$18))*(YEAR(C$2)=YEAR($B$18:$AK$18))*($B$19:$AK$19),1)

    In the orange section:

    H3 and across:
    =LARGE((MONTH(B3)=MONTH($B$18:$AK$18))*(YEAR(C$2)=YEAR($B$18:$AK$18))*($B$20:$AK$20),1)

    Please note that I change the formatting of the months and years in the tables, so that the formula will be able to capture these as months/years.
    Attached Files Attached Files

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Match Column and Row

    For Table A, C3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down and across.
    For Table B, H3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down and across.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Match Column and Row

    Updated sample file
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-18-2017
    Location
    Charlotte, NC, USA
    MS-Off Ver
    Microsoft 2016
    Posts
    74

    Re: Match Column and Row

    Quote Originally Posted by TMS View Post
    Updated sample file
    Hey guys - thanks for your input on this. I like your way TMS, but if I have more data further down the tables (see new attachment) and the dates continue on, Jan-21, Feb-21, etc. Would you still use your formula?

    In my real life file, the main table (with dates Jan-18, Feb-18...) is quite large and continue to update as we finish a month.
    Attached Files Attached Files

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Match Column and Row

    I can only give you an answer to the question you ask. I cannot second guess the variations on a theme that might exist.

    If you make your Tables wide enough, there's no reason why you can't just drag the formula across.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Match Column and Row

    Oops wrong thread

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count Unique Values with Partial Match one column exact match another column
    By carsto in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-30-2019, 09:56 AM
  2. Replies: 4
    Last Post: 04-14-2017, 07:47 PM
  3. [SOLVED] Code to find row containing match in column a and another match in another column
    By anfdrew in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2015, 12:53 AM
  4. Replies: 4
    Last Post: 11-20-2014, 09:23 PM
  5. Replies: 4
    Last Post: 02-19-2013, 02:19 PM
  6. Replies: 4
    Last Post: 10-07-2012, 06:56 AM
  7. Replies: 4
    Last Post: 12-14-2009, 03:21 PM

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