+ Reply to Thread
Results 1 to 7 of 7

If Else If Statement across sheets

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    33

    If Else If Statement across sheets

    Hi Guys, probably a very basic problem - but here goes. Im setting up a budgeting excel sheet for a student and I want to get a value based on a category selection on one sheet and for the total to be updated (added together) on another sheet. As there are 3 different categories I was thinking of doing 3 different If Else Statements to produce the totals on the other sheet but I cant seem to get it working to add another together..
    Any help would be great.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: If Else If Statement across sheets

    Need to be a whole lot more specific than that. An example workbook may help, but be clear about your requirement.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: If Else If Statement across sheets

    Apologies for that - If Category A/B/C is selected in Column D on sheet 'Expenses to Date ' I want to be able to total all of each category which is selected and then totalled in the current spend column in the 'Fixed Budget' sheet. I may be completely wrong in the IF Else statement approach. Again any help or pointers would be appreciated. Worksheets attached.
    Attached Files Attached Files

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: If Else If Statement across sheets

    On worksheet [Fixed Budget], enter the following formula in cell D4:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy and paste to cells D5:D6

  5. #5
    Registered User
    Join Date
    01-30-2013
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: If Else If Statement across sheets

    Hi Olly, Thanks for that - could you explain the logic behind it so I dont make the same mistake again - I was trying to do If then Else statements with multiple outcomes for A,B,C which was obviously wrong..

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: If Else If Statement across sheets

    The IF (x then a else b) function will choose between two outcomes, based on a criteria.

    In your case, you are trying to sum multiple values, based on a criteria, so the SUMIF function is exactly what you need.


  7. #7
    Registered User
    Join Date
    01-30-2013
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: If Else If Statement across sheets

    Gotcha - Thanks for that.

+ 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. If Statement Across All Sheets
    By jennyaccord in forum Excel General
    Replies: 3
    Last Post: 12-12-2011, 10:44 AM
  2. If statement help with multiple sheets?
    By kezzby in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-19-2010, 07:54 PM
  3. Using with statement to reference two sheets
    By gwithey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2008, 08:17 AM
  4. If statement between sheets
    By NosLliWhsoj in forum Excel General
    Replies: 1
    Last Post: 11-21-2006, 09:56 AM
  5. With statement on many sheets
    By Rob in forum Excel General
    Replies: 2
    Last Post: 08-22-2006, 11:40 PM

Tags for this Thread

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