+ Reply to Thread
Results 1 to 6 of 6

Using an asterisk

  1. #1
    Registered User
    Join Date
    06-20-2016
    Location
    Wisconsin, USA
    MS-Off Ver
    365 ProPlus
    Posts
    44

    Using an asterisk

    I'm doing a SUMIFS function and one of the criteria I want to set down is that I don't want to include any cells in a column that contain the word "storage" (e.g., "used as storage", "storage space", "storage").

    My formula so far looks like this...

    =SUMIFS($E:$E,$G:$G,"=",$C:$C,"<>"&"VACANT",A:A,"<>"&"Total Current"

    then if in column C I didn't want any cells that included the word "storage" I would put into my equation.... --> ($C:$C, "<>"&"*storage*")

    Correct? Or do I only need one asterisk?

    Kind of nitpicky, but any help would be greatly appreciated.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using an asterisk

    That would be correct with the * on both sides of storage.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using an asterisk

    Quote Originally Posted by NDmad View Post
    $C:$C,"<>"&"*storage*"

    Correct?
    Correct, and you don't need the "&"...

    $C:$C,"<>*storage*"
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    06-20-2016
    Location
    Wisconsin, USA
    MS-Off Ver
    365 ProPlus
    Posts
    44

    Re: Using an asterisk

    If I might ask then, what is the point of using "&" in a function?.... I think I have been using them unnecessarily in many functions now.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using an asterisk

    The purpose of & is to 'join' 2 text strings into 1 text string.
    It's a shortcut for the CONCATENATE function.

    "<>"&"*storage*"

    You have 2 text strings there
    "<>"
    "*storage*"

    The & joined them together to make one text string, "<>*storage*"

    It wasn't 'wrong' persay to use it in your formula like you did. Just not required.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using an asterisk

    It depends on how/why you're using it.

    For example, if you had "storage" in a cell then you would need the &.

    A1 = storage

    $C:$C,"<>*"&A1&"*"

+ 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. Worksheetfunction with Asterisk
    By T86157 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-02-2015, 09:05 PM
  2. Asterisk as WildCard
    By yawnzzzz in forum Excel General
    Replies: 1
    Last Post: 04-14-2010, 09:08 AM
  3. addition with asterisk
    By radkri in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-03-2010, 10:48 PM
  4. How do I eliminate the asterisk.
    By elcasey125 in forum Excel General
    Replies: 4
    Last Post: 12-03-2008, 11:49 AM
  5. [SOLVED] Finding an asterisk
    By Blah in forum Excel General
    Replies: 4
    Last Post: 05-19-2006, 09:45 PM
  6. [SOLVED] asterisk in a cell
    By Caroline41 in forum Excel General
    Replies: 2
    Last Post: 11-30-2005, 01:35 PM
  7. Add asterisk to excel cell
    By jblack35 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2005, 03:06 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