+ Reply to Thread
Results 1 to 4 of 4

Looking for a way to filter a text variable

  1. #1
    Forum Contributor
    Join Date
    05-11-2020
    Location
    Kansas City
    MS-Off Ver
    Office 365
    Posts
    162

    Looking for a way to filter a text variable

    Hi All,

    I am working on totaling some data that has a text variable ( To Inv. ) that is messing with my formula (This is in the "Weekly OJR View" tab. I would like to sum column C (C11:C120) with everything but the cells that have the "To Inv." using the current referenced cells in cell C8. I would also like to sum everything that has the "To Inv." in column C9. I think all passwords have been removed in this, but the password is "schedule" without quotes in case there are any remaining.

    Example:

    To Inv./ 650
    To Inv./ 186

    Sum the 650 and 186 into Cell C9

    1 / 3 and anything like this into cell C8

    Thank you in advance,

    Adam
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,477

    Re: Looking for a way to filter a text variable

    To filter out "To Inv", an example:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: Looking for a way to filter a text variable

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

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

    In your example, this is OK, but you may need a different approach if you also need to sum the values when there is text after the fraction, like in OJR DATA!F200

    Please check if this will help you.

    Good luck!
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,035

    Re: Looking for a way to filter a text variable

    You are meant to provide desensitised SAMPLE (small representative) workbooks. This looks like your entire project. Has it been desensitised? Just be aware that ANYONE can download this data - remember this is a public forum.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Bolding a text string variable within a string with variable text strings prior
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-14-2022, 02:53 PM
  2. Excel table filter by date variable through data picker date variable
    By SamanH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2018, 01:09 PM
  3. Filter with a variable and select sheet with a variable not working
    By Jubb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2017, 04:23 PM
  4. [SOLVED] correctly 'wording' a for/next loop using a variable counter and variable filter
    By DBoyd121 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-14-2016, 06:13 PM
  5. Macro to filter a pivot whilst looping through filter criteria in a variable list.
    By Alistairm88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2015, 04:25 AM
  6. Replies: 3
    Last Post: 02-17-2015, 11:53 PM
  7. Replies: 1
    Last Post: 10-27-2012, 02:54 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