+ Reply to Thread
Results 1 to 11 of 11

Help with total rows...

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Help with total rows...

    Hi,

    I have received some excellent help from this site, and have now finished the work I needed to do.
    I'm just wondering if i could make life easier when updating my database.

    I currently have 14,654 rows and will be adding about 200 or so each month next year..
    I am using 12 formulas which pulls data from all rows, but am wondering if instead of say A2:A14654,
    I could instead say A2: the bottom row. (I use A1 for titles) is there a way to do something like this?

    also, My formulas vary in format Eg..

    =SUMPRODUCT(($J$2:$J$14654=$AB2)*(V2:V14654=2),--(W2:W14654=0))

    =MAX(IF(J2:J14654=AB2,IF(Y2:Y14654>1.9,IF(M2:M14654<=100,D2:D14654))))

    =SUMPRODUCT(--(V2:V14654=2),--(W2:W14654=1)) etc..

    some have $ signs, and some are of different formats... will this have an effect when i add more rows?

    I just want to make as easy as possible to update my database, and not have to worry if my results are accurate or not.

    Thanks all..

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help with total rows...

    Hi,

    You should get into the habit of using dynamic range names. These automatically adjust for the length/width of data lists, and using a named range instead of cell refs. also makes formulae easier to read.

    I can offer no better advice than to visit Debra's web site http://blog.contextures.com/archives...automatically/
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Help with total rows...

    If all of the rows are going to be non-blank then you might get away with something like:

    =SUMPRODUCT(($J$2:OFFSET($J$2,COUNTA(J:J)-1,0)=$AB2)*(V2:OFFSET($V$2,COUNTA(J:J)-1,0)=2),--(W2:OFFSET($W$2,COUNTA(J:J)-1,0)=0))

    Note that only one of your columns always needs to have data in for this to work.

  4. #4
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Help with total rows...

    ok.. this is exactly what i'm looking for...just looks a little more complicated then I excpected.

    Ill have a play around it... is there a specific part of the code I can just copy and paste it into my formulas with :14654 in, and just edit according to my formula requirements? or will it depend on the formula i'm editing.

    Thanks guys

  5. #5
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Help with total rows...

    Richard's suggestion is much better - dynamic ranges would be the way to go and less work.

  6. #6
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Help with total rows...

    Ok cool... so for these dynamic ranges...do i apply this to the data, or to the cells i have beside the data with the formulas and the calucations.

    A-Z has Data in, and AB and beyond has formulas with cells for the results to appear in... like calcualtors.

  7. #7
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Help with total rows...

    Ok, I have now named all my ranges... just having trouble adjusting my formulas now...

    =SUMPRODUCT(($J$2:$J$14654=$AB2)*(V2:V14654=2),--(W2:W14654<2))

    J = WName, V = 1S and W = 2S

    if somebody can adjust that code to work with the name ranges, i can figure out how to edit these myself...

    Many thanks..

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Help with total rows...

    You can better show us the file, without confidentional information.

    Then we can have a better look on your problem.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  9. #9
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Help with total rows...

    I'd rather not if i can help it...

    is it not possible for you to edit that formula without it?

    thanks

  10. #10
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Help with total rows...

    Should just be:

    =SUMPRODUCT((WName=$AB2)*(1S=2),--(2S<2))

  11. #11
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Help with total rows...

    Thank you...

    Alot simpler then I initially thought,

    Thanks guys !

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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