+ Reply to Thread
Results 1 to 11 of 11

Have several sheets with data I need to match up to same row

  1. #1
    Registered User
    Join Date
    03-16-2018
    Location
    Oregon
    MS-Off Ver
    365
    Posts
    34

    Have several sheets with data I need to match up to same row

    Good morning everyone,

    I have several sheets of data with a title in column A and a record count in column B. All of the sheets share some but not all of the same titles. So becasue of the difference in number of titles, the titles themself end up on different rows.

    For example:
    • Sheet 1 - Title A is on row 3 (record count = 25)
    • Sheet 2 - Title A is on row 10 (record count = 18)
    • Sheet 3 - Title A doesn't exist
    • Sheet 4 - Title A is on row 5 (Record count = 5)

    I need all of the titles on one page in the same column with subsequent columns populated with the record count.

    For example:
    • Column A - All titles
    • Column B - Record count from Sheet 1
    • Column C - Record count from Sheet 2
    • Column D - Record count from Sheet 3
    • Column E - Record count from Sheet 4


    You can reference the attached excel file for a mock up of this scenario, with the data populated as I would like to have it done (I populated it manually)

    Whoever can solve this will be my hero and I will owe you a very large beer!

    Cody
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,306

    Re: Have several sheets with data I need to match up to same row

    Try

    In E8

    =IF($B8="","",VLOOKUP($B8,INDIRECT("'"&E$2&"'!B2:D52"),2,0))

    Copy down

    NOTE: data in your sample is out of sync: colunm D should be column E etc
    Attached Files Attached Files

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Have several sheets with data I need to match up to same row

    Your description and your file don't quite match.

    Are you trying to consolidate the information in worksheets "Prospect Source Campaign", "Lead Source Campaign" and "MQL Last Activity Campaign", onto sheet "Attribution Model"?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Have several sheets with data I need to match up to same row

    Try with in "D8" in sheet "Attribution Model"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In "E8"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In "F8"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Ensure SHIFT+CTRL+ENTER
    copy paste down.
    File attach for immediate ref.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Registered User
    Join Date
    03-16-2018
    Location
    Oregon
    MS-Off Ver
    365
    Posts
    34

    Re: Have several sheets with data I need to match up to same row

    Hey AVK, that's awesome!! I'm tryingto replicate it on my actual spreadhseet but can't figure it out. Could you help me one more time with this spreadsheet? Could you help me figure out the rest of the tabs I've created too...? For some reason I can't figure out how to use the formula or customize it myself yet.

    Thanks a ton!
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-16-2018
    Location
    Oregon
    MS-Off Ver
    365
    Posts
    34

    Re: Have several sheets with data I need to match up to same row

    Using column B as the naming convension to match against

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,306

    Re: Have several sheets with data I need to match up to same row

    Your file is full of VALUE errors where the match on TEXT fields is done. And your "Attrribution Model" tab has no "tab" headings as per your "Fake":

    Removed ALL the value errors from "Prospect Source Campaign"

    in B2 of "Attrubution Model"

    =IFERROR(INDEX('Prospect Source Campaign'!$C$1:$C$52,MATCH('Attribution Model'!$A2,'Prospect Source Campaign'!$B$2:$B$52,0)),"")

    Copy down

    NOTE: your Data and headings are offset by one row: hence the range offset.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-16-2018
    Location
    Oregon
    MS-Off Ver
    365
    Posts
    34

    Re: Have several sheets with data I need to match up to same row

    Ok, I see, those mistakes in formatting made it confsuing. I think this is all working just fine right now, let me keep messing with it before I mark is solved. Thanks a ton!

  9. #9
    Registered User
    Join Date
    03-16-2018
    Location
    Oregon
    MS-Off Ver
    365
    Posts
    34

    Re: Have several sheets with data I need to match up to same row

    Hell YES! Thanks a ton AVK. Come to Portland, beers on me my friend!

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,306

    Re: Have several sheets with data I need to match up to same row

    AVK ????

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  11. #11
    Registered User
    Join Date
    03-16-2018
    Location
    Oregon
    MS-Off Ver
    365
    Posts
    34

    Re: Have several sheets with data I need to match up to same row

    Lol, my bad, both of you were a HUGE help! Thanks JohnTopley, sorry I wasn't looking at who posted that time. Will submit rep and solved. Thanks!

+ 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] Multiple sheets match data too all sheets
    By Glensteven4life in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-07-2016, 02:51 PM
  2. [SOLVED] Match data from two different sheets
    By Bambi555 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-27-2016, 01:07 PM
  3. Match data between 2 sheets
    By kit370 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-19-2014, 06:50 PM
  4. Match data between 2 sheets
    By kitmanu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2014, 02:41 PM
  5. match data 2 sheets. if match, then copy data from one sheet to another
    By flunzy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-09-2013, 06:38 AM
  6. Match data in 2 different sheets
    By moley165 in forum Excel General
    Replies: 3
    Last Post: 10-07-2013, 02:57 PM
  7. [SOLVED] Two Excel sheets trying to match text data and return the match from the second column!
    By bankcott in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2013, 02:17 PM

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