+ Reply to Thread
Results 1 to 4 of 4

Help with IF statement formula in summing prior data.

  1. #1
    Registered User
    Join Date
    08-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    27

    Help with IF statement formula in summing prior data.

    I'm looking for help with an if statement to sum data from multiple tabs of prior data.


    In the data cell M8, what would be the most effeicent formula to pull the following information.

    What I need help with:

    I need cell M8 to display the total YTD value based of prior tabs.

    So, for example:

    If cell b2 is = to 17 then I need to display the sum of the same value from wk "Yp09-WorkCenter Summary Wk01" through "Yp09-WorkCenter Summary Wk17"

    Another example:

    If cell b2 is = to 16 then I need to display the sum of the same value from wk "Yp09-WorkCenter Summary Wk01" through "Yp09-WorkCenter Summary Wk16"


    If anyone can provide some insight I would be very much appreciative, because I'm stuck in my own tracks on this one.

    Thanks!
    Attached Files Attached Files
    Last edited by asburytl; 09-06-2011 at 11:40 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with IF statement formula in summing prior data.

    Try:

    Please Login or Register  to view this content.
    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Help with IF statement formula in summing prior data.

    It seems like that will work perfectly, however, it is not pulling the correct total for some reason?

    Not sure if I was confusing or not in my explaination, so, I'll throw it out there again:

    If b2 says 17, it should sum 1-17
    If b2 says 16, it should sum 1-16.

    Thanks again for all your help, I really appreciate it....
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with IF statement formula in summing prior data.

    Yes, I should've checked it a bit better... doesn't look like the INDEX will work here to get the multiple sheets... so we'll need to change it to:

    Please Login or Register  to view this content.
    In this case instead of identifying the column to sum by number, e.g. 8, you will have to actually define the range of that 8th column, i.e. $I$2:$I$502

+ 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