+ Reply to Thread
Results 1 to 10 of 10

Need help. Nested sum,if statement new to excel

  1. #1
    Registered User
    Join Date
    09-09-2013
    Location
    Indiana, United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Need help. Nested sum,if statement new to excel

    Having troubles trying to get the syntax right I think. I'm wanting to add one cell across multiple pages that are the exact same and if they are <>0 then sum of the cells, if not ""(blank). Thanks

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Need help. Nested sum,if statement new to excel

    sample workbook.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    09-09-2013
    Location
    Indiana, United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need help. Nested sum,if statement new to excel

    basically what I want to do on the pitching totals page is add the coresponding data from game 1 to 100 and if no data then "" leave blank. I already have one just grabbing the sum of all the pages and I know I could just do that but really I want blank if no data
    Last edited by EdgeCrusher32; 09-09-2013 at 06:15 PM.

  4. #4
    Registered User
    Join Date
    09-09-2013
    Location
    Indiana, United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need help. Nested sum,if statement new to excel

    Here is the workbook
    Attached Files Attached Files

  5. #5
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Need help. Nested sum,if statement new to excel

    So the cell C45 value should be the same(let say have 10) in each of your 5 tabs?
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  6. #6
    Registered User
    Join Date
    09-09-2013
    Location
    Indiana, United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need help. Nested sum,if statement new to excel

    yes if I had 10 in each tab then the total should be 50 otherwise is should be blank if no data is present also they may not always have the exact same data but I meant they were the same page layout
    Last edited by EdgeCrusher32; 09-09-2013 at 06:40 PM.

  7. #7
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Need help. Nested sum,if statement new to excel

    2014 blank softball stat template2-1.xlsx
    Please see attached.
    If you add more tabs you need to expand the N range by adding new tabs names:
    =IF(SUMPRODUCT(COUNTIF(INDIRECT("'"&$N$3:$N$7&"'!"&CELL("address",C45)),'Game (1)'!C45))=COUNTA($N$3:$N$7),SUM('Game (1):Game (100)'!C45),"")

  8. #8
    Registered User
    Join Date
    09-09-2013
    Location
    Indiana, United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need help. Nested sum,if statement new to excel

    thank u RobertMika so i guess I was completely wrong in thinking I had a syntax error that code is completly different that what I was trying to use. So the $N range is what looks to me like its the number of the tabs? Thanks again.

  9. #9
    Registered User
    Join Date
    09-09-2013
    Location
    Indiana, United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need help. Nested sum,if statement new to excel

    Ok I now see what the $N range represents so if I moved it to x colum it would be $X range. Sorry Im just starting excel so im kinda slow but thanks again.
    Last edited by EdgeCrusher32; 09-09-2013 at 08:46 PM.

  10. #10
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Need help. Nested sum,if statement new to excel

    Yes you are reight.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Nested What IF excel statement with date ranges
    By Glenn1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2012, 01:47 PM
  2. Excel 2010 Nested IF / AND Statement
    By snikrs11 in forum Excel General
    Replies: 5
    Last Post: 03-04-2011, 12:43 PM
  3. excel nested if statement
    By hunterdog in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2009, 09:02 PM
  4. Replies: 6
    Last Post: 01-14-2009, 06:59 PM
  5. Designer dummy in Excel - Need (nested?) If statement...
    By Excel Dummy in forum Excel General
    Replies: 1
    Last Post: 12-30-2005, 02:40 PM

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