+ Reply to Thread
Results 1 to 6 of 6

Using large function based on sumifs function

  1. #1
    Registered User
    Join Date
    03-26-2015
    Location
    Manila
    MS-Off Ver
    2007
    Posts
    2

    Using large function based on sumifs function

    Hi, I have a spreadsheet containing the following:

    COLUMN A COLUMN B COLUMNC
    ITEM SOLD DATE
    APPLES 2 3/1/15
    ORANGES 5 3/2/15
    BANANA 6 3/2/15
    APPLES 7 3/3/15
    ORANGES 1 3/4/15
    ORANGES 2 3/4/15

    I want to have a top 2 list of which fruit sold the most based on cumulative total or sum of fruit sold based on column b for a particular date (column c).
    is that possible?

  2. #2
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Using large function based on sumifs function

    Hi

    Used helper column
    =SUMIF(A:A,A2,B:B)*(COUNTIF($A$2:A2,A2)=1)

    all other in excel file
    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    03-26-2015
    Location
    Manila
    MS-Off Ver
    2007
    Posts
    2

    Re: Using large function based on sumifs function

    Thanks for the reply.

    Is it possible to do this without a helper column?

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Using large function based on sumifs function

    Quote Originally Posted by jeosen View Post
    Is it possible to do this without a helper column?
    I dont think so (without using VBA)

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Using large function based on sumifs function

    see the attached file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Using large function based on sumifs function

    welcome to the forum, jeosen. say your date is in E1, try this array formula in E2:
    =LARGE(IF($C$2:$C$10=$E$1,$B$2:$B$10),ROWS(E$2:E2))

    and this formula in F2:
    =INDEX($A$2:$A$10,LARGE(IF($C$2:$C$10=$E$1,ROW($B$2:$B$10)),ROWS(E$2:E2))-ROW($B$2)+1)

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Data Range
    A
    B
    C
    D
    E
    F
    1
    ITEM
    SOLD
    DATE
    4/3/2015
    2
    APPLES
    2
    1/3/2015
    2
    ORANGES
    3
    ORANGES
    5
    2/3/2015
    1
    ORANGES
    4
    BANANA
    6
    2/3/2015
    5
    APPLES
    7
    3/3/2015
    6
    ORANGES
    1
    4/3/2015
    7
    ORANGES
    2
    4/3/2015

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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] Retrieve Data From Cell Based in Array Based on LARGE Function
    By justarandomguy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-13-2014, 02:31 AM
  2. LARGE function to find top 10 but want to SUM other cells based on the top 10
    By chrbrown30 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2014, 01:23 PM
  3. Sum Mulitple Column based on the multiple Conditions using sumifs function
    By JEETKAMALARORA in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-20-2012, 03:24 AM
  4. Sumifs function based on Date range and sales value
    By Shihab in forum Excel General
    Replies: 7
    Last Post: 02-05-2012, 11:31 AM
  5. IF function based on True result with large formula.
    By naiveprogrammer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2005, 07:05 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