+ Reply to Thread
Results 1 to 4 of 4

I need a method to autopopulate, rearrange, select the latest entry of duplicate criteria

  1. #1
    Registered User
    Join Date
    01-24-2020
    Location
    edmonton, canada
    MS-Off Ver
    2013
    Posts
    16

    I need a method to autopopulate, rearrange, select the latest entry of duplicate criteria

    What I am trying to do is build a series of formulas, commands, and or a macro that works with them to take the latest entry in a list which is expanded daily, paste four out of seven columns, rearrange those columns to work with a vlookup, have it only select the most recent, and then output two of those columns together in the same cell without spaces so I can copy and paste it into a search window.

    What I have:
    A Vlookup with a wildcard that takes a unit number and displays the quote that it was for.

    What I want:
    I would like a method or macro that takes 4 columns (out of 7) from a protected shared workbook and places it in another spreadsheet. These three columns would need to be rearranged to work with my vlookup macro. So if the order was 1,2,3,4,5,6,7 I need 6,5,1,4 in that order (the other columns don't matter).

    Specifically I have one spreadsheet that grows everyday that is protected and shared. Manually taking out the quotes and rearranging them takes too long. I also want to add a formula into the vlookup or another lookup method altogether to take the most recent result.

    So for example if I have the quote 12885 & 12895 for the same unit I want it to show 12895 and not 12885
    Another way to explain it
    Quote:12895 - is for unit "Apple" <---- I want this one because it is more recent
    Quote:12885 - is for unit "Apple"

    My quote numbers are perpetually ascending so I'm wondering if I can use a max or something? I'm having difficulty thinking it through and I'm not sure if it is possible to nest that function into the vlookup.

    The last thing I'm looking to do is have it output a combined searchable line of text. I realize I can do part of it with a concatenate formula but I need no spaces as the output. So for example see below (the periods are only there to represent spacing to try and make the idea clearer. I'm unsure how you just put a space in instead of a character. There would be No periods!

    Column A.........,........B.............,.......... C ............ - Column A is the quote number - Column C is the company name

    ......Q6485 ....................................Joes peaches

    I want this as a copyable line

    .......Column A...................., B.............., .... C

    .......JoespeachesQ6485

    So in words I want it to take the quote number and put it behind the company name then paste it into a different cell and remove the spaces in the same cell. Effectively making it something I can search for specifically.

    And no I can't search partial matches because of the way their computers are setup. I have no idea why but if I try and search the numbers at the end without the exact beginning characters it shows no results.

    I can script kitty simple macros and I'm pretty good with the recorder. I am learning vba, albeit slowly. I have a piecemeal knowledge of excel and I'm in an environment right now where I need to focus on learning what I need. I have a pretty decent knowledge of formulas, I know of functions (used 2 that I didn't write), and I have put together a few useful lengthy macros piecing together tidbits off the internet

    Any help would be greatly appreciated. And hey if you can only comment on one part of the problem I'm all ears!

    Thanks guys!
    Last edited by Prill; 01-24-2020 at 11:03 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: I need a method to autopopulate, rearrange, select the latest entry of duplicate crite

    Welcome to the forum.

    This sounds like it will need VBA - shall I move this to the VBA section for you?

    Instructions telling you how to attach your sample workbook are at the top of the page.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-24-2020
    Location
    edmonton, canada
    MS-Off Ver
    2013
    Posts
    16

    Re: I need a method to autopopulate, rearrange, select the latest entry of duplicate crite

    Sure that would be good. Do you think attaching something would help? I'm mainly looking for someone to tell me what the formulas or functions are that could do this so I can figure it out on my own.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: I need a method to autopopulate, rearrange, select the latest entry of duplicate crite

    Thread moved.

    I asked for a sample workbook because I think it will help you to get a more speedy solution.

+ 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] Random select data without duplicate selection and other than specific criteria
    By syed82 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-09-2019, 11:22 PM
  2. [SOLVED] Pivot Table or Method to Rearrange Data
    By bradlehoux in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 08-21-2018, 12:42 PM
  3. Replies: 3
    Last Post: 03-27-2017, 10:20 PM
  4. Replies: 0
    Last Post: 09-12-2016, 01:34 AM
  5. [SOLVED] Vlookup Base on Criteria but pick up the entry based on the latest date
    By kelkelkel08 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2014, 05:37 AM
  6. Search for duplicate entry on two criteria within date range
    By glynnhicks in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-22-2013, 06:00 AM

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