+ Reply to Thread
Results 1 to 4 of 4

Repair Order Sales Only with Tires Sales

  1. #1
    Registered User
    Join Date
    09-05-2018
    Location
    Scottsdale AZ
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    71

    Repair Order Sales Only with Tires Sales

    Hello,

    I'm trying to build a pivot table that returns the total repair order sales only if tires were sold on that repair order. I can create a pivot table that returns tire sales but I need help returning the additional repair sales on that repair order.

    In the two repair order examples below, the pivot table would only return the total sales of $674.95 for repair order #2 because it has tire sales.

    Example:
    Repair Order #1
    Oil Change $99.95
    Wipers $19.95
    Total $119.95

    Repair Order #2
    Oil Change $99.95
    Tires $250.00
    Brakes $325.00
    Total $674.95

    Thanks,
    Daren
    Attached Files Attached Files
    Last edited by darenferg; 02-26-2021 at 02:31 PM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: Repair Order Sales Only with Tires Sales

    I think this is what you want. As often happens with pivot tables, sometimes you have to play with the source data to get what you want.

    BTW: Thanks for using Excel Tables; they make life so much easier.

    The key formula is in Column G, "Has Tire Sales" =ISNUMBER(MATCH("TIRES",IF([REPAIR ORDER]=[@[REPAIR ORDER]],[OPCODE],FALSE),0)). As usual, it pays to work the formula from the inside out.

    IF([REPAIR ORDER]=[@[REPAIR ORDER]],[OPCODE],FALSE) this part of the formula establishes the range to look at. We re only interested in looking at rows that have the same Repair Oder as the current row. Other rows are not considered.

    Then there is Match. We are matching the value "TIRES" against the "valid" rows established by the if statement. So for Repair Order 4500, that's rows 2:6. For Repair Order 4505, that's rows 7:9. Match itself returns the row on which the word "TIRES" is found, if it is found. If not, #N/A is returned. So the ISNUMBER converts this into True / False.

    With the embedded if statement, this should have been an array formula. Somewhere along the line Microsoft changed that.

    The other two columns just separate the charges in to Tire and Non-Tire. You might be able to set up a formula within the pivot table to do this, but I generally find it easier to do the heavy lifting outside the pivot table.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    09-05-2018
    Location
    Scottsdale AZ
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    71

    Re: Repair Order Sales Only with Tires Sales

    Looks great....

    Thank you

  4. #4
    Registered User
    Join Date
    09-05-2018
    Location
    Scottsdale AZ
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    71

    Re: Repair Order Sales Only with Tires Sales

    Dflak,

    The formula works perfectly. I also need the opposite, only return the total sales on repair orders that do not have tire sales. I tried reworking your original formula without any success.

    Thanks,
    Daren

+ 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. [SOLVED] % of sales increase/decrease depending on new 2020 sales vs 2019 sales.
    By scubakerny in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-04-2020, 08:05 PM
  2. [SOLVED] How to identify whether a Sales is Cash Sales or Credit Sales
    By purav82 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-28-2018, 10:11 AM
  3. Replies: 1
    Last Post: 06-09-2015, 09:30 AM
  4. Replies: 1
    Last Post: 11-19-2013, 12:52 PM
  5. Replies: 6
    Last Post: 10-19-2013, 04:53 PM
  6. Replies: 7
    Last Post: 07-23-2013, 07:56 AM
  7. Replies: 2
    Last Post: 06-19-2012, 10:19 AM

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