+ Reply to Thread
Results 1 to 4 of 4

Way of copying uneven cell references on Excel Drag copy

  1. #1
    Registered User
    Join Date
    03-01-2013
    Location
    vsence muft
    MS-Off Ver
    Excel 2003
    Posts
    11

    Way of copying uneven cell references on Excel Drag copy

    Dear All,

    I have a worksheet with these formulas on Cells A1, A2, A3,A4

    ="*"&B2
    =5
    ="*"&B3
    =6

    The problem is that I need to copy these two formulas trough a big numbers of rows, and I was hoping excel could find a pattern here, but as I drag these cells down, these formulas are copied like this

    ="*"&B6
    =5
    ="*"&B7
    =6

    This isn't what I was hoping but a sequential order of the first formula like this

    ="*"&B4
    =5
    ="*"&B5
    =6

    Is there a way to fix this? I need this to copy this for more than 250 rows.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Way of copying uneven cell references on Excel Drag copy

    Try this:

    A1: ="*"&INDEX(B:B, FLOOR(ROW()/2,1)+1)
    A2: =5
    A3: ="*"&INDEX(B:B, FLOOR(ROW()/2,1)+1)
    A4: =6


    Now copy down.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-01-2013
    Location
    vsence muft
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Way of copying uneven cell references on Excel Drag copy

    JBeaucaire,

    This is the first time I'm reading about the Floor function, but it works, thanks a lot

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Way of copying uneven cell references on Excel Drag copy

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above to mark a thread as 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. Drag all cell references when editing formula
    By forfriends in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-01-2019, 12:59 PM
  2. [SOLVED] Drag a formula that references a cell from another Sheet (Skipping a cell incrementing 1)
    By DixieDiver in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-05-2013, 06:25 PM
  3. Replies: 6
    Last Post: 07-27-2013, 09:02 AM
  4. Replies: 1
    Last Post: 10-10-2005, 08:05 AM
  5. drag and drop problem with cell references
    By natanz in forum Excel General
    Replies: 3
    Last Post: 09-01-2005, 10:05 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