+ Reply to Thread
Results 1 to 2 of 2

Matching and retrieving data (Please help!) x

  1. #1
    Registered User
    Join Date
    03-05-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    Unhappy Matching and retrieving data (Please help!) x

    Hiya, me again!

    (please see example below if this is confusing!) In the "K" column of my spreadsheet I have all company name entries, and in the "L" I have all of the corresponding date quarters e.g. Q1, Q2 up to Q4, with random data in the following columns. I then condensed down these columns into the Quarters I actually need, so company name in "A", Quarter in "B" and random data in the next few columns:

    -----A-------B----X-------------------K-------L-----Y
    Com. A | | Q1| | x | |........ | | Com. A | | Q1 | | y
    Com. A | | Q3| | x | |........ | | Com. A | | Q2 | | y
    Com. A | | Q3| | x | |........ | | Com. A | | Q3 | | y
    Com. B | | Q2| | x | |........ | | Com. A | | Q4 | | y
    Com. A | | Q4| | x | |......... | | Com. B | | Q1 | | y

    I now have the task of attaching the "more data" column alongside the "random data column" (there is plenty of space!). But as the table on the right contains all Quarters, and I only want the relevant Quarter's "more data" entries being put with the random data, I'm not quite sure what to do! Pseudo-code wise I think I want to do something along the lines of:
    For(i = 0 up to last row)
    For(j = 0 up to last row)
    if((Ai == Kj) && (Bi == Lj))
    copy more data in row i next to random data in row i

    I've got experience with some coding but excel macros are wizardry to me at this stage, any help would be greatly appreciated as it's for a fast approaching deadline!


    Thanks and please ask if I haven't given enough information! I've attached a screenshot of my spreadsheet if that helps

    help please.JPG
    Last edited by rinonishi; 03-10-2018 at 04:57 PM. Reason: messed up formatting lmao

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Matching and retrieving data (Please help!) x

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

+ 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. Retrieving Data from a report using matching/lookup/indexing/something else?
    By accountant123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-09-2017, 08:58 AM
  2. Matching, Grabbing and Retrieving
    By Carla05c in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 12-09-2015, 05:28 PM
  3. Retrieving matching words
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2015, 05:38 PM
  4. [SOLVED] Retrieving Matching Emails
    By sathishkm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2013, 02:56 PM
  5. Matching & retrieving data across sheets
    By nd2006 in forum Excel General
    Replies: 3
    Last Post: 08-21-2006, 08:55 AM
  6. [SOLVED] Matching multiple columns and retrieving a value
    By shzdug in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2006, 05:49 PM
  7. Retrieving Matching Values from Not
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-25-2005, 02:59 AM

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