Results 1 to 6 of 6

Adding variable number of cells without #N/A ever showing

Threaded View

  1. #1
    Registered User
    Join Date
    01-06-2019
    Location
    Euro
    MS-Off Ver
    365
    Posts
    37

    Adding variable number of cells without #N/A ever showing

    I have 2 sheets. in Sheet2 i have my list of items with associated variables (e.g. weight) and in sheet 1 I have a list of bags which contain the items. Any bag can have any amount of items up to 6. I want a formule that irrespective of the amount of items i have in the bag will add up the related variables. So in cell O6 of my workbook in sheet1 I want the the weights of all the items in it. So the weight of the 3 flashlights, 2 paddings and 1 screw. I want this to be done for each variable and importantly I want #N/A to never show.


    Currently I`m using this but it is insane to arrange and fix (and I even broke it). I want something a bit less brain damaging

    =IFS(AND(ISTEXT(C2),ISTEXT(E2),ISTEXT(G2),ISTEXT(I2),ISBLANK(K2)),(VLOOKUP(C2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE))+(VLOOKUP(E2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE))+(VLOOKUP(G2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE))+(VLOOKUP(I2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE)),AND(ISTEXT(C2),ISTEXT(E2),ISTEXT(G2),ISBLANK(I2),ISBLANK(K2)),(VLOOKUP(C2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE))+(VLOOKUP(E2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE))+(VLOOKUP(G2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE)),AND(ISTEXT(C2),ISTEXT(E2),ISBLANK(G2),ISBLANK(I2),ISBLANK(K2)),(VLOOKUP(C2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE))+(VLOOKUP(E2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE)),AND(ISTEXT(C2),ISBLANK(E2),ISBLANK(G2),ISBLANK(I2),ISBLANK(K2)),(VLOOKUP(C2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE)),AND(ISTEXT(C2),ISTEXT(E2),ISTEXT(G2),ISTEXT(I2),ISTEXT(K2)),(VLOOKUP(C2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE))+(VLOOKUP(E2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE))+(VLOOKUP(G2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE))+(VLOOKUP(I2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE)+(VLOOKUP(K2,'[My Stats.xlsm]Meal List'!$A$11:$AS$91,4,FALSE))))
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Adding data from variable cells
    By bjoanmark in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-28-2019, 06:35 AM
  2. Replies: 3
    Last Post: 02-17-2015, 11:53 PM
  3. [SOLVED] Calculate average of variable number of cells variable number of times
    By WeirnetherlandsBart in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2014, 10:11 AM
  4. adding variable sums from different cells
    By ioneabee in forum Excel General
    Replies: 5
    Last Post: 05-13-2010, 04:09 AM
  5. Adding variable number of blanks
    By ringnab in forum Excel General
    Replies: 2
    Last Post: 07-12-2006, 04:29 PM
  6. count number of cells in range showing between 320 and 345
    By annieandtika in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-24-2006, 09:43 PM
  7. [SOLVED] adding variable number of columns
    By confused in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-23-2005, 06: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