+ Reply to Thread
Results 1 to 4 of 4

Copy data validation and maintain cell reference?

  1. #1
    Registered User
    Join Date
    05-26-2020
    Location
    Taipei, Taiwan
    MS-Off Ver
    2007
    Posts
    10

    Copy data validation and maintain cell reference?

    Hi All,

    I have a problem when copying data validation to other cells. When copying, the cell always increments by one and I need the reference to stay the same.

    Here is a sample of my data validation formula: =MOD(P35,$A1)=0

    Now if I copy that to the cell directly below, the formula becomes: =MOD(P36,$A2)=0 and the next row becomes =MOD(P37,$A3)=0 and so on.

    I want the reference to remain $A1.

    Such as:

    =MOD(P35,$A1)=0
    =MOD(P36,$A1)=0
    =MOD(P37,$A1)=0

    I can't for the life of me figure out how to keep the reference for $A1 and not increment when pasting.

    The worksheet I have now is only a few dozen entries and I was comfortable manually changing everything back to $A1. But I now have a worksheet with several thousand rows of data and it would be so helpful if there was a way to copy and paste the data validation formula and always maintain the reference as: $A1.

    If anyone could offer a suggestion, I'd appreciate it.

    Thanks!
    Last edited by AliGW; 07-26-2023 at 01:13 AM. Reason: SOLVED tag applied - no need to edit the thread title!

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Copy data validation and maintain cell reference?

    Please try =MOD(P35,$A$1)=0

  3. #3
    Registered User
    Join Date
    05-26-2020
    Location
    Taipei, Taiwan
    MS-Off Ver
    2007
    Posts
    10

    Re: Copy data validation and maintain cell reference?

    Thank you! This works perfectly.
    Last edited by AliGW; 07-26-2023 at 12:58 AM. Reason: Please do NOT quote unnecessarily!

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Copy data validation and maintain cell reference?

    Thanks for the feedback and rep . Glad to have helped.

+ 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. Copy certain sheets to a new workbook and maintain reference formulas
    By okela in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-24-2020, 09:34 AM
  2. Maintain cell reference when inserting a row.
    By Tedejr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2019, 09:24 AM
  3. [SOLVED] Data validation Reference getting changed if creating a copy of sheet
    By amitmodi_mrt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-23-2016, 08:03 AM
  4. Maintain Formatting when Pasting Data into a Cell with Data Validation
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-18-2013, 09:11 PM
  5. Use VBA to copy Data Validation reference cell font color to destination cell?
    By proav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2012, 08:09 PM
  6. Maintain Formulas / Cell reference help
    By wjsok85 in forum Excel General
    Replies: 4
    Last Post: 06-18-2009, 08:11 AM
  7. [SOLVED] Copy worksheet & maintain cell reference across worksheets
    By dingy101 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2006, 06:55 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