+ Reply to Thread
Results 1 to 11 of 11

Drag fill not recognising formula pattern

  1. #1
    Registered User
    Join Date
    03-12-2015
    Location
    Bristol,UK
    MS-Off Ver
    2010
    Posts
    4

    Drag fill not recognising formula pattern

    Hi
    Can anyone help. I'm using a excel and using a formula =COUNTIF('2015'!C9:C29,"f")/COUNTA('2015'!C9:C29)
    I want to drag the formula across to the next column, but the data it is looking at is =COUNTIF('2015'!F9:F29,"f")/COUNTA('2015'!F9:F29) and it returns for D.
    I want to be able to drag it across another 180 columns with it looking at every third column data set .

    Hope that makes sense to someone, will be a very long winded way if i have to manually enter every column.
    Many thanks

    Steve

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Drag fill not recognising formula pattern

    Excel won't recognize like this
    Try this instead
    =COUNTIF(INDIRECT("'2015'!"&ADDRESS(2,COLUMN(A1)*3,4)&":"&ADDRESS(9,COLUMN(A1)*3,4)),"f")/COUNTA(INDIRECT("'2015'!"&ADDRESS(2,COLUMN(A1)*3,4)&":"&ADDRESS(9,COLUMN(A1)*3,4)))
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Drag fill not recognising formula pattern

    Or like this
    =COUNTIF(OFFSET('2015'!$C$2:$C$9,,(COLUMN(A1)-1)*3),"f")/COUNTA(OFFSET('2015'!$C$2:$C$9,,(COLUMN(A1)-1)*3))

  4. #4
    Registered User
    Join Date
    03-12-2015
    Location
    Bristol,UK
    MS-Off Ver
    2010
    Posts
    4

    Re: Drag fill not recognising formula pattern

    Thanks for those, but they are not returning the right answer.
    Any ideas?
    Many thanks

  5. #5
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Drag fill not recognising formula pattern

    They should...Don't know why they aren't working..
    Please attach a sample workbook so that I can see what's going wrong!!
    You can attach by clicking on the go advanced button below the typing area and then selecting the paper clip icon from the icons above...

  6. #6
    Registered User
    Join Date
    03-12-2015
    Location
    Bristol,UK
    MS-Off Ver
    2010
    Posts
    4

    Re: Drag fill not recognising formula pattern

    Thanks
    File attached

    Looking at putting the formula in the Availability sheet in C7,the answer should be 76%, but it give 20%
    I'm sure its my explanation thats wrong

    Many thanks for your help
    Attached Files Attached Files

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,444

    Re: Drag fill not recognising formula pattern

    Try rhis in C7
    Please Login or Register  to view this content.
    drag and adapt your range to the last column ( first can remain A)

  8. #8
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Drag fill not recognising formula pattern

    In your example you told different range C2 to C9 so I made formula accordingly But as you are having C9:C41 in original file
    formula should be
    =COUNTIF(OFFSET('2015'!$C$9:$C$41,,(COLUMN(A1)-1)*3),"f")/COUNTA(OFFSET('2015'!$C$9:$C$41,,(COLUMN(A1)-1)*3))

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,444

    Re: Drag fill not recognising formula pattern

    Be aware that OFFSET is volatile (INDEX is not). With that many calculations the sheet could slow down

  10. #10
    Registered User
    Join Date
    03-12-2015
    Location
    Bristol,UK
    MS-Off Ver
    2010
    Posts
    4

    Re: Drag fill not recognising formula pattern

    Awesome, many thanks Pepe
    Thats worked

  11. #11
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,444

    Re: Drag fill not recognising formula pattern

    You're welcome

+ 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] Drag and Drop a pattern of formulae
    By Big Craig in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-11-2014, 08:55 AM
  2. Recognising pattern errors in a designated row
    By mallymcl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-05-2014, 07:57 AM
  3. [SOLVED] Drag fill to follow pattern and skip row
    By Phily915 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-10-2014, 12:26 PM
  4. [SOLVED] Excel not recognising pattern
    By mallymcl in forum Excel General
    Replies: 1
    Last Post: 01-15-2014, 02:10 AM
  5. how to fill formula in any cell and drag it?
    By vumian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2006, 10:46 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