+ Reply to Thread
Results 1 to 3 of 3

Is There A Variant Formula?! Anyone ? :).

  1. #1
    Registered User
    Join Date
    08-02-2016
    Location
    Manchester, England
    MS-Off Ver
    2013
    Posts
    8

    Is There A Variant Formula?! Anyone ? :).

    Hi,

    Is there a formula where I can say 'If' such such matches then give me all the variants in another column.

    For example how would I get a list of all the variants in the product category column for Dresses. I will then what to do sumifs from this.

    Category Product Category
    Dresses Maxi
    Dresses Midi
    Dresses Midi
    Dresses Maxi
    Dresses Short
    Dresses Maxi
    Tops Crop
    Tops T Shirt
    Tops Jumper
    Tops Crop
    Tops Jumper
    Tops T Shirt
    Tops T Shirt
    Tops Crop

    Thank you .

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

    Re: Is There A Variant Formula?! Anyone ? :).

    Is this what you had in mind...

    Data Range
    A
    B
    C
    D
    E
    1
    ------
    ------
    ------
    ------
    ------
    2
    Dresses Maxi
    6
    Dresses
    210
    3
    Dresses Midi
    90
    Tops
    395
    4
    Dresses Midi
    9
    5
    Dresses Maxi
    52
    6
    Dresses Short
    28
    7
    Dresses Maxi
    25
    8
    Tops Crop
    70
    9
    Tops T Shirt
    96
    10
    Tops Jumper
    6
    11
    Tops Crop
    72
    12
    Tops Jumper
    4
    13
    Tops T Shirt
    50
    14
    Tops T Shirt
    79
    15
    Tops Crop
    18


    This formula entered in E2 and copied down:

    =SUMIF(A$2:A$15,D2&"*",B$2:B$15)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Is There A Variant Formula?! Anyone ? :).

    with a couple of helpcells and index / match.

    see the attached file (the green cells).
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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. Does setting a variant acting as an array equal to "" accomplish same as "Erase" variant?
    By dmasters4919 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2014, 05:59 PM
  2. Variant of Max Sumif Formula?
    By ynwa77 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-11-2014, 07:39 PM
  3. Using a variant in forumla... help please
    By KATIEexcel in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-16-2013, 03:48 AM
  4. [SOLVED] DIM Variant / String
    By Helmut in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2006, 08:59 AM
  5. variant to long?
    By James Cornthwaite in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2006, 11:00 AM
  6. Passing value of variant
    By Andrew in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2006, 10:20 PM
  7. Variant
    By owl527 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2005, 05:05 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