+ Reply to Thread
Results 1 to 4 of 4

Formula to returned refunded items from multiple sheets?

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    29

    Formula to returned refunded items from multiple sheets?

    I have a simple set of 3 tables here tracking what items were bought from certain departments and a 4th table compiling that info using Countif. When an item is bought, it is recorded on the department's corresponding table. If an item is returned, "Returned" is put on that specific item line and the Totals table captures that by subtracting from the total for that department. What I'm struggling to wrap my head around is the Total Sold by Item column - how do I capture a returned item in the horizontal calculation? In this example, 6 shirts were bought in total, but 2 were returned so what formula should I use in E2 (which should read 4) to capture the returned shirts from all departments?

    I feel like the answer is obvious, but I can't seem to wrap my head around it.

    Thank you in advance

    Edit: Another thing I would like to know is if there is a way to quickly pull which items and from which departments were returned as well, haven't had a chance to think of it myself, just crossed my mind as I submitted this post.

    Edit 2: I think I may have achieved what I needed using SUM COUNTIFS for each sheet and adding an extra column beside the total by item (and subtracting that column), rather than trying to fit the calculation into the total cell E2. My second still stands however, anyway to return which items were returned form where?
    Attached Files Attached Files
    Last edited by Battletoads; 12-07-2018 at 11:30 AM.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Formula to returned refunded items from multiple sheets?

    Please Login or Register  to view this content.
    The countifs allows to test two conditions, so it only counts when the Item return cell is blank

  3. #3
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Formula to returned refunded items from multiple sheets?

    Hi B,

    Just a suggestion, but you may be better off using Pivot Tables - please see attached.
    All the information is recorded in the "Master" data table on the left and the 2 Pivot Tables are shown on the right.

    Regards

    peterrc
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-21-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Formula to returned refunded items from multiple sheets?

    Thanks for the tips, I will give them both a shot

+ 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. What happens if a function returns a value but you don't have a variable to capture it?
    By dmasters4919 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2015, 01:30 PM
  2. Need help with a vlookup formula; trying to capture more than one item
    By jooka84 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2014, 05:33 PM
  3. UserForm: Search Item in List > Call Table associated with Item > Execute Command
    By TexasAggie12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2014, 12:58 PM
  4. Replies: 1
    Last Post: 10-23-2012, 12:08 AM
  5. COUNTIF Problem - Formula returns #Value
    By MCoev in forum Excel General
    Replies: 5
    Last Post: 03-01-2012, 03:45 PM
  6. Replies: 2
    Last Post: 01-17-2012, 03:20 PM
  7. ListBox2 only returns first item in range
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2008, 01:55 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