+ Reply to Thread
Results 1 to 6 of 6

Fill Handle Problems (fill data from 2 rows)

  1. #1
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Question Fill Handle Problems (fill data from 2 rows)

    Hey,

    my last problem got solved with this Forum so I'll try my luck again. I'm working on a sheet for my university. Everything is working fine now, but i cant use the fill handle/ fill data option of Excel the way i want to.

    =INDEX(INDIREKT("[HOURS.xlsm]PLAN!"&ADRESSE(9;3165+4*(SPALTE(A1)-1))&":"&ADRESSE(384;3165+4*(SPALTE(A1)-1)));VERGLEICH($A12;INDIREKT("[HOURS.xlsm]PLAN!"&ADRESSE(9;3164+4*(SPALTE(A1)-1))&":"&ADRESSE(384;3164+4*(SPALTE(A1)-1)));0))

    This would be my first column. In the second Column I need some other ours but on the same day. I just realised ours are sometimes split. So the formula for the second row would look something like this:

    =INDEX(INDIREKT("[HOURS.xlsm]PLAN!"&ADRESSE(9;3165+4*(SPALTE(B1)-1))&":"&ADRESSE(384;3165+4*(SPALTE(A1)-1)));VERGLEICH($A12;INDIREKT("[HOURS.xlsm]PLAN!"&ADRESSE(9;3164+4*(SPALTE(B1)-1))&":"&ADRESSE(384;3164+4*(SPALTE(A1)-1)));0))

    So the A1 needs to change to B1 and it does if i only pull one row. If i start pulling two rows it changes to C1 immediatly. Why? and how do i get excel to do what i want :D.


    Any suggestions?

    thx for any help
    Joel
    Last edited by JoelPak; 03-10-2016 at 11:02 AM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Fill Handle Problems (fill data from 2 rows)

    When copied, A1 becomes B1 become C1 becomes D1......

    Maybe use SPALTE($A1) so that does not happen.

    Or copy it once, then use find and replace to change SPALTE( to SPALTE($

    Or describe what you are trying to do and get a better formula
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: Fill Handle Problems (fill data from 2 rows)

    Quote Originally Posted by Bernie Deitrick View Post

    Or describe what you are trying to do and get a better formula
    Sry if its hard to understand im a german in america trying to learn english .

    The formula is working just fine. I need to get Student hours out of a huge Excel file and do stuff with these hours. There everything is working just fine as i mentioned.
    My Problem is that I have two columns with the two different formulas aside ech other. So once i use fill handle it changes the A1 to C1 because im pulling 2 columns and not only 1 (A1 to B1). The question is: Is there any way i can tell Excel to only move one column at a time? so like A1 A1 then B1 B1 then C1 C1 and so on. Else the counting is not going right and i get wrong numbers.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Fill Handle Problems (fill data from 2 rows)

    Since you are using (SPALTE(A1) - 1) - (COLUMN(A1) - 1) in English - you could use this in its place

    INT((SPALTE(A1)-1)/2)

    That will give you 0 0 1 1 2 2 (effectviely the same as A1 A1 B1 B1 C1 C1 but when you copy you will get A1 B1 C1 D1 E1 F1)

    If that is not the pattern you need, post the pattern you want for the index of the copied formula...
    Last edited by Bernie Deitrick; 03-10-2016 at 12:35 PM.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Fill Handle Problems (fill data from 2 rows)

    Without seeing a sample file I can only guess that part of the reason that you are getting wrong numbers is that the second formula has mismatched cell references. =INDEX(INDIREKT("[HOURS.xlsm]PLAN!"&ADRESSE(9;3165+4*(SPALTE(B1)-1))&":"&ADRESSE(384;3165+4*(SPALTE(A1)-1)));VERGLEICH($A12;INDIREKT("[HOURS.xlsm]PLAN!"&ADRESSE(9;3164+4*(SPALTE(B1)-1))&":"&ADRESSE(384;3164+4*(SPALTE(A1)-1)));0))
    It seems as if the letters that I have highlighted in red should be B's to match the un-highlighted SPLATE(B1)... parts.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: Fill Handle Problems (fill data from 2 rows)

    Bernie this should be exactly what i need. And Jete yeah this is i guess just a misstype after i copied it :D sry for that.

    Ill try the formula you suggested and see if it works. thx for the help guys.

+ 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] Getting fill handle to recognise a gap in the rows
    By OwenMcH in forum Excel General
    Replies: 7
    Last Post: 08-02-2014, 12:28 PM
  2. Replies: 6
    Last Post: 05-01-2014, 06:04 PM
  3. [SOLVED] Fill-handle doesn't fill all the way down
    By xgirl in forum Excel General
    Replies: 7
    Last Post: 05-30-2013, 01:35 AM
  4. Using the fill handle
    By nazitf in forum Excel General
    Replies: 4
    Last Post: 04-24-2009, 05:37 PM
  5. Fill handle
    By juliebenn in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-01-2008, 02:13 PM
  6. Fill handle to fill across to the right
    By paulwelburn in forum Excel General
    Replies: 2
    Last Post: 09-19-2007, 08:25 AM
  7. fill handle
    By Brenda in forum Excel General
    Replies: 4
    Last Post: 05-19-2005, 12:06 PM

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