• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Collapse

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "Subtotal without subtotalling?"

Collapse

  • lilelvis2000
    replied
    Originally posted by LisaContractorUmbrella View Post
    Is that him standing behind you?
    Luckily for me, I work from home!

    Leave a comment:


  • BoredBloke
    replied
    Pivot it or if you don't like pivots then do this. Get all the data into a consistent format and use SUMIFS (not Sumif). That way you can use multiple criteria. Then take your ID column and copy it to another sheet. Use remove duplicates to generate a single list of unique values. Use SumIfS to summarise against this.

    I could look at it if you want

    Leave a comment:


  • LisaContractorUmbrella
    replied
    Originally posted by lilelvis2000 View Post
    Kinda like my client who just loves to f**k things up. God bless him. For without him I would not earn the piddly sums that I do.
    Is that him standing behind you?

    Leave a comment:


  • LisaContractorUmbrella
    replied
    Originally posted by eek View Post
    I was going to say manager and owner but then remembered that its part of your brother's SJD group.

    Did you get your company horse in the end?
    Yep Simon's the big cheese - I'm the cheese niblet

    No I bloody didn't - I'll have a word with him about that!

    Leave a comment:


  • lilelvis2000
    replied
    Originally posted by LisaContractorUmbrella View Post
    Actually I'm the Managing Director I also love spreadsheets which is why I still get involved with this stuff (probably much to the annoyance of the team who'd far rather I was off playing golf or something )
    Kinda like my client who just loves to f**k things up. God bless him. For without him I would not earn the piddly sums that I do.

    Leave a comment:


  • eek
    replied
    Originally posted by LisaContractorUmbrella View Post
    Actually I'm the Managing Director I also love spreadsheets which is why I still get involved with this stuff (probably much to the annoyance of the team who'd far rather I was off playing golf or something )
    I was going to say manager and owner but then remembered that its part of your brother's SJD group.

    Did you get your company horse in the end?
    Last edited by eek; 12 September 2014, 13:09.

    Leave a comment:


  • LisaContractorUmbrella
    replied
    Originally posted by eek View Post
    Lisa is the manager...
    Actually I'm the Managing Director I also love spreadsheets which is why I still get involved with this stuff (probably much to the annoyance of the team who'd far rather I was off playing golf or something )

    Leave a comment:


  • eek
    replied
    Originally posted by lilelvis2000 View Post
    I see there is a decent solution to this. But anyway. Yes there are various ways to determine the last row of data so the loop would not be fixed.
    You seem to be doing a lot of complex Excel work...might think about dropping a VBA training course leaflet to the manager. I think it would be worth it.
    Lisa is the manager...

    Leave a comment:


  • LisaContractorUmbrella
    replied
    Originally posted by lilelvis2000 View Post
    I see there is a decent solution to this. But anyway. Yes there are various ways to determine the last row of data so the loop would not be fixed.
    You seem to be doing a lot of complex Excel work...might think about dropping a VBA training course leaflet to the manager. I think it would be worth it.
    Ok thanks for that - yes, you're right a VBA training course would probably be a good idea

    Leave a comment:


  • lilelvis2000
    replied
    Originally posted by LisaContractorUmbrella View Post
    Not familiar with loops at all Quite happy to record macro's but not really any good at writing them! Can kind of understand what you've written - will this still work if the number of rows vary? I can't give a definitive end point
    I see there is a decent solution to this. But anyway. Yes there are various ways to determine the last row of data so the loop would not be fixed.
    You seem to be doing a lot of complex Excel work...might think about dropping a VBA training course leaflet to the manager. I think it would be worth it.

    Leave a comment:


  • LisaContractorUmbrella
    replied
    Originally posted by MPwannadecentincome View Post
    OK I am experimenting with data, I see that you need to have totals for each employee for each month as well as totals for the each employee for all months - right?

    So the first one you have in column D already and you want the second in column E.

    How important is it to have those values in those columns, can there be somewhere else? What is it you need to do with this data afterwards?
    Yep you've got it. The data can't really be anywhere else as I need to be able to view names and reference numbers which are attached to the data. Once this is resolved I need to vlookup corresponding data on another worksheet and then compare the two figures to give a variance i.e. the difference in totals for each reference number on the two worksheets.

    Leave a comment:


  • darrylmg
    replied
    Originally posted by LisaContractorUmbrella View Post
    Have tried a couple of times and get the same result - when there was less data it would take around 45 minutes to enter the subtotals so am pretty sure it's just shear volume combined with nested Vlookup functions which I understand take up a lot of processing power
    But have you tried switching it off and back on again...

    Leave a comment:


  • MPwannadecentincome
    replied
    OK I am experimenting with data, I see that you need to have totals for each employee for each month as well as totals for the each employee for all months - right?

    So the first one you have in column D already and you want the second in column E.

    How important is it to have those values in those columns, can there be somewhere else? What is it you need to do with this data afterwards?

    Leave a comment:


  • LisaContractorUmbrella
    replied
    Thanks Mudskipper you're a great help

    Leave a comment:


  • mudskipper
    replied
    Originally posted by LisaContractorUmbrella View Post
    A Employee ID B Month C Amount D Total for Month (Calc: =IF(AND(A2=A1,B2=B1),0,C2)

    1235 1 25.00
    1235 1 15.00 40.00
    1235 2 25.00 25.00
    1235 3 125.00 125.00
    2569 2 25.00
    2569 2 15.00 40.00
    2569 3 300.00
    2870 3 25.00 325.00

    What I need is a calculation in column E which will sum Column D at each change of reference in column A

    I spent ages lining up all those numbers which now look fine whilst I am editing but all group together when I post
    There you go

    Code:
    A Employee ID             B Month        C Amount          D 
    Total for Month (Calc: =IF(AND(A2=A1,B2=B1),0,C2)
    
    1235                              1                   25.00 
    1235                              1                   15.00            40.00
    1235                              2                   25.00            25.00
    1235                              3                 125.00           125.00
    2569                              2                   25.00
    2569                              2                   15.00            40.00 
    2569                              3                 300.00 
    2870                              3                   25.00           325.00

    Leave a comment:

Working...
X