1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Excel 2007: possible VBA, or can I use functions?

Discussion in 'Business Applications' started by themike, Apr 15, 2011.

Thread Status:
Not open for further replies.
  1. themike

    themike Thread Starter

    Apr 15, 2011
    For an example, I am looking to get D7 on the 'WS' worksheet to look through both column B and C of the 'AJE' worksheet and find anywhere there is the label of the value of A7(from WS!), and then sum the values of column D - column E on AJE! for only those corresponding rows

    I then want to carry this down for each cell of column D & E on 'WS'

    I'm not sure if this is something fairly easy, or not. I do know some VBA (if I have to go that route) but haven't done much within excel: so even how to get started would be great.


    Attached Files:

  2. Jimmy the Hand

    Jimmy the Hand

    Jul 28, 2006
    I'm sure I don't understand the task, but here's a formula into D7:
  3. AD_Taylor


    Jan 16, 2010
    Think you have a decent enough understanding Jimmy :)

    Opened up the example sheet and think I understood a lot more. I've done something similar before so it helps.

    What I think you want to do in plain English is:

    In cell (WS) D7 you want to total all of the Debits from the AJE tab if they match the Account Title Column.
    In cell (WS) E7 you want a similar thing but to total all the Credits from the AJE tab.

    In this case the following formulas should work

    =SUMIF(AJE!$B:$B, WS!$A7, AJE!$D:$D) + SUMIF(AJE!$C:$C, WS!$A7, AJE!$D:$D)

    =SUMIF(AJE!$B:$B, WS!$A7, AJE!$E:$E) + SUMIF(AJE!$C:$C, WS!$A7, AJE!$E:$E)

    Even given it a quick test on the example sheet and all works fine from what I can see.
    Hope this helps!
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/991530

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice