+ Reply to Thread
Results 1 to 3 of 3

Function to sum mixed text/numbers filtered by multiple criteria excluding strikethrough

  1. #1
    Registered User
    Join Date
    02-05-2019
    Location
    Vancouver, Canada
    MS-Off Ver
    365
    Posts
    2

    Function to sum mixed text/numbers filtered by multiple criteria excluding strikethrough

    I need to gather data from another workbook file.
    Since this file is protected, I can only read the info.

    I have 4 columns for the criteria needed and some may be optional.

    If this is a combination udf/formula or just udf, that's fine.

    As an example: (please read the bold as strikethrough)

    file: [data.xlsm]SO

    A B C D
    1 Fence Lattice Top 4' 12 PC
    2 Gate No Lattice 3' 8pcs
    3 Fence No Lattice 5' 3 pcs
    4 Fence No Lattice 5' 7
    5 Fence Lattice Top 4' 3
    6 Fence No Lattice 4' 12
    7 Fence No Lattice 3' 1pc

    With column D being the sum totals, I would like my ouput to be:

    file: [Tally.xlsm]Panels

    A B C D
    1 Fence Lattice Top 4' 3
    2 Fence No Lattice 3' 1
    3 Fence No Lattice 4' 12
    4 Fence No Lattice 5' 10
    5 Gate No Lattice 3' 8

    I understand that it's bad design, however, I'm not a decision maker with that aspect. I can only push for changes.
    SUMIFS and SUMPRODUCT are great, but can't do this.

    I'd like to step through a range step by step, and check the other columns as I go to filter the data.

    I would love to see a function that works here.

    Thank you to anyone that spends time on this.
    Last edited by darkshaddow; 02-07-2019 at 11:37 AM. Reason: I didn't exclude the strikethrough data

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Function to sum mixed text/numbers filtered by multiple criteria excluding strikethrou

    Hello darkshaddow. Welcome to the forum.

    I am not sure I understand the issue with strike through. It shouldn't keep this from working.

    I use a helper column in E to extract the numbers.

    Enter in E1 and fill down.


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


    Then in K1 of the attached this formula filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 02-06-2019 at 09:04 PM.

  3. #3
    Registered User
    Join Date
    02-05-2019
    Location
    Vancouver, Canada
    MS-Off Ver
    365
    Posts
    2

    Re: Function to sum mixed text/numbers filtered by multiple criteria excluding strikethrou

    Thank you for the response.

    The source needs to be read only, are you suggesting to copy over the columns into my new file, and then add a helper column?

    If so, then I guess I can create a macro to copy over all columns needed from data.xlsm to Tally.xlsm, then another to simply strip the numbers from the text.

    Example of a macro I copied and tested to remove text from numbers here:

    Please Login or Register  to view this content.
    Source is found here: stackoverflow.com/questions/27651997/vba-to-edit-excel-column-of-data
    Of course, your helper column looks like a great way to use native formulas when the extraction is similar, and may be a preferred method.

    Strikethrough was used to show a cancelled order existed, but the history was still needed.
    If data was copied, I could check for strikethrough and multiply the number with -1 and sum as needed, but will need a function to do this.

    Would this be an appropriate method?
    Last edited by darkshaddow; 02-07-2019 at 11:34 AM. Reason: added source

+ 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. Is any function read strikethrough text in cell?
    By Merrysa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2018, 10:43 AM
  2. [SOLVED] Summation of Numbers with Text & Numbers in Multiple Cells with Multiple Criteria...
    By e4excel in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 09-14-2017, 01:46 PM
  3. Count from a text list, excluding duplicates, with multiple criteria
    By Ecervantes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2017, 10:42 PM
  4. Autosum excluding strikethrough
    By ty_smith78 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-10-2015, 08:27 AM
  5. [SOLVED] Count - Multiple Mixed Criteria (Number and Text)
    By christopherprater in forum Excel General
    Replies: 4
    Last Post: 05-19-2012, 03:56 PM
  6. AutoFill mixed text and numbers
    By fandangle in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-01-2007, 09:13 AM
  7. Incrementing Mixed text & numbers
    By Janet T in forum Excel General
    Replies: 8
    Last Post: 11-08-2005, 09:02 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