+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP name range change area after new paste

  1. #1
    Registered User
    Join Date
    03-25-2019
    Location
    new york
    MS-Off Ver
    professional plus 2010
    Posts
    2

    VLOOKUP name range change area after new paste

    Hi all, I created a worksheet A based on a report B generated by a software daily. A contains employees and formulas to vlookup their numbers from B. B contains many markets ie name ranges. My problem each time I copy past new report into B the name ranges change their rows. Never same place so I have to update them using "Formulas/Edit". Columns in B report don't change. Is there a way to avoid editing each time name range? like defining range by rows between header and footer? header would be market name and footer market totals and between the two are names of sales people.
    The reason I don't select the whole sheet B is because some people work in different markets hence their names are redundant.
    Hope my question is clear. appreciate any help.

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,474

    Re: VLOOKUP name range change area after new paste

    If you are using a vlookup can't the range of that formula just be the entire column? You said the columns don't change so if you do that no matter where the rows show up they should accurately pull over to your Worksheet A.

    If this doesn't help could you please attach an example worksheet showing us how this data moves in your worksheet B?

  3. #3
    Registered User
    Join Date
    03-25-2019
    Location
    new york
    MS-Off Ver
    professional plus 2010
    Posts
    2

    Re: VLOOKUP name range change area after new paste

    Maybe I didn't explain it well. The worksheet B is the data source. It contains multiple named ranges. This worksheet B has to be updated daily meaning each day I copy/past a new report there. Doing so makes the named ranges areas slide up and down along the rows. That's how the report is generated. Ex. range X today is between rows 12 and 25 but tomorrow might be between rows 15 and 28. And this affects formulas results in worksheet A.
    My question is there a way Excel can recognize the named range, though they moved, based on some top and bottom references: like name of market and market totals.? Thanks for reply

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: VLOOKUP name range change area after new paste

    Hi Tim and welcome to the forum,

    A look at a sample workbook would help to understand your question. That being said, two things come to mind.

    1. Use Dynamic Named Ranges that adjust with your data.
    2. Restructure your data and use Pivot Tables.

    https://www.ozgrid.com/Excel/DynamicRanges.htm for an explanation of DNRs


    Attach a sample workbook (not a picture or pasted copy). 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.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say 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. Replies: 2
    Last Post: 09-14-2016, 02:51 AM
  2. Replies: 3
    Last Post: 02-23-2015, 06:51 AM
  3. How to change Paste Destination Range
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2014, 06:39 PM
  4. [SOLVED] Copy range and paste to next empty row in a defined row or area
    By JimmyG. in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-13-2013, 03:11 PM
  5. Change range of cells within VBA macro and copy and paste to fixed cell range
    By Mannyny in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-20-2012, 11:51 AM
  6. Replies: 3
    Last Post: 05-13-2011, 03:02 AM
  7. Cut area & Paste area size problem
    By noidea in forum Excel General
    Replies: 1
    Last Post: 07-19-2007, 12:35 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