+ Reply to Thread
Results 1 to 3 of 3

Set up the array or change the formula?

  1. #1
    Registered User
    Join Date
    11-12-2019
    Location
    Sydney
    MS-Off Ver
    365
    Posts
    16

    Set up the array or change the formula?

    Hi community,

    I'm using the formula on E10 to calculate the quantity of slats I use depend on the size of the product


    When I type any combination of these following numbers (150,200,250,300,350,400,450,500,550,600,650,700,800,900,1000,1100,1200,1350,1500,1650,1800,2000,2200,2400) on E3toE10 and F3toF10, the formula on E10 use the table bellow to search for the equivalent value(lookup) and sum all these values.

    I tryied select on the lookup range the whole table but as I'm using arrays was returning wrong values(the table of heigh 100 is returning correct), So I decided to use a lookup for every single size different of 100, the problem is that I have around 300 different combinations and it would be 300 lookups on the same formula (when I type another lookup on the current formula the excel is not highlighting anymore), also the maximum SUM is 255.


    Do you guys know how I can SUM these values easier using another formula or changing the array setup to use the whole table?

    thank you
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Set up the array or change the formula?

    I think when you mention your formula you're referring to I10 as opposed to E10 -- the below would give the same result:

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

    your current use of LOOKUP implies you could have inexact criteria yet the "options" for E3:F10 (as listed in prior post) all exist - as such I've assumed exact match

    if the above isn't what you need post back with some expected results for variety of different E3:F10 combinations.

  3. #3
    Registered User
    Join Date
    11-12-2019
    Location
    Sydney
    MS-Off Ver
    365
    Posts
    16

    Re: Set up the array or change the formula?

    Hey XLent, that completely helped me

    I added this part in bold to multiply with the quantity and it`s working perfectly.

    =SUMPRODUCT(SUMIFS($E$23:$E$320,$A$23:$A$320,$E$3:$E$10,$B$23:$B$320,$F$3:$F$10)*($D$3:$D$10))

+ 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. Change formula to fit an array but keep getting error messages
    By djnoble126 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2019, 12:20 PM
  2. Change formula to fit an array but keep getting error messages
    By djnoble126 in forum Suggestions for Improvement
    Replies: 1
    Last Post: 01-23-2019, 12:20 PM
  3. [SOLVED] Change array formula to non-array
    By Seilor1978 in forum Excel General
    Replies: 3
    Last Post: 02-18-2018, 06:21 AM
  4. Change formula to NOT array
    By JPSIMMON in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-20-2017, 01:49 PM
  5. change from Array formula to VBA code
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2016, 12:14 PM
  6. VBA Code to Change Portion of Array Formula
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-28-2009, 12:57 PM
  7. [SOLVED] How can I change a # in an array formula for a whole column?
    By gswegan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-23-2006, 05:30 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