+ Reply to Thread
Results 1 to 6 of 6

Summing below vlookup from an Index Array

Hybrid View

  1. #1
    Registered User
    Join Date
    07-04-2017
    Location
    South Africa
    MS-Off Ver
    2016
    Posts
    15

    Summing below vlookup from an Index Array

    Hi All,

    Im looking to create a formula that would sum the above values to get a total.I have used a drop down list and an Index Array along with Vlookup to get the monthly sales per product per customer.

    My thoughts were that if I add an If function to the start of my vlookup formula to say that when it looks at the product code in Col A and if a product code is present then it must return the corresponding sales value or is the value is " " then it would sum all the sales data above it across all the monthly columns.

    If you guys see any issues with my current formulas please let me know as well.

    Any thoughts?

    Thanks in advance.
    Rob.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,465

    Re: Summing below vlookup from an Index Array

    With A1 in the drop-down box, what are your expected outcomes on the first row of data, please? There should be no need for IF statements if you are using the data in the table you have created. The expected outcomes will help us determine what you are aiming to do here.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-04-2017
    Location
    South Africa
    MS-Off Ver
    2016
    Posts
    15

    Re: Summing below vlookup from an Index Array

    Hi AliGW

    The Outcomes will be the values hi-lighted in yellow.

    Basically what im looking for is when I change the brand on the drop down list,
    say from a1 to c3 (the data grows from 7 line items to 11)
    I want a formula to automatically sum the data above it for each column (or month) and return the data in the next empty row
    (brand a1 will be row 12 and when i change to c3 the total should automatically sum all the data above it for the month and return the vale in row 16)

    Hope this makes sense.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-04-2017
    Location
    South Africa
    MS-Off Ver
    2016
    Posts
    15

    Re: Summing below vlookup from an Index Array

    My thoughts we that the vlookup must detect that a value is in column A and it must return the corresponding sales figure, otherwise if no value is available (which means the end of the data set) then it must sum the values above that line for each month.
    Last edited by AliGW; 07-11-2017 at 10:26 AM. Reason: Unnecessary quotation removed.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,465

    Re: Summing below vlookup from an Index Array

    OK - just taking a look now. I think you will need to use the SUBTOTAL function.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,465

    Re: Summing below vlookup from an Index Array

    Mmm - can't find a way to make it work - sorry. Hopefully someone else will step in.

+ 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. Summing value with 2 parameters - Index & match, or Vlookup?
    By Misterbashi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-01-2015, 11:40 AM
  2. [SOLVED] Array, VLOOKUP - or- Match/index with a Countif.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2015, 05:38 PM
  3. [SOLVED] Index Match Vlookup Array or Similar
    By djm601 in forum Excel General
    Replies: 3
    Last Post: 10-27-2014, 04:39 PM
  4. [SOLVED] Can you set array for Vlookup or Index/Match using Offset?
    By inincubus in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2014, 12:52 PM
  5. getting data from an array table using INDEX or VLookup
    By jimroh in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-13-2013, 02:23 PM
  6. index, match, vlookup, array ....combining all these?
    By hog77 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-05-2012, 12:29 PM
  7. URGENT vlookup/array or index help
    By masond3 in forum Excel General
    Replies: 8
    Last Post: 07-30-2012, 11:20 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