+ Reply to Thread
Results 1 to 5 of 5

=SUMIF to sum from last row with data to the 2nd cell

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    68

    =SUMIF to sum from last row with data to the 2nd cell

    what i'm trying to do is use this formula =SUMIF($G$2:$G$13,"1,K2:K13) based on the two coulmns.
    so i want to find both columns and calculate the total at the bottom of the AMT Column and the dup coulms will have 1 and 0 that to sort out the dups but the thing is the amount of rows is always different.



    Please Login or Register  to view this content.
    Last edited by daillest319; 05-24-2012 at 01:35 PM.

  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: need help with code

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    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
    Registered User
    Join Date
    01-09-2012
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    68

    Re: =SUMIF to sum from last row with data to the 2nd cell

    I edited te topic name

  4. #4
    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: =SUMIF to sum from last row with data to the 2nd cell

    Difficult to comment without seeing the actual workbook and understanding exactly what you're getting at.

    Just a guess but have you tried

    Range(Cells(2, FoundD.Column + 1), Cells(LR, FoundD.Column + 1)).FormulaR1C1 = "=SUMIF($G$2:$G$" & LR &",1,K2:K13)"

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: =SUMIF to sum from last row with data to the 2nd cell

    Richard, isn't it like 4 am in Tokyo? I'd be dead to the world, lol
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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