+ Reply to Thread
Results 1 to 6 of 6

Array SUMIF formula to sum if numbers but it not place text

  1. #1
    Forum Contributor
    Join Date
    08-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    163

    Array SUMIF formula to sum if numbers but it not place text

    Okay so im gonna try to discribe my problem as best as I can.
    I have a list of Items and the quantities of those items on one sheet. Each item has a section location number as well. (three Columns, Item, Quantity, and Section Location). the list can repeat the same item multiple times.

    This is why I then have a summary sheet to uses a SUMIF formula to sum the quantities of a given item that are in a givin section. which my SUMIF Formula works great for. But my problem is some items have the word "LUMP" as its quantity and not a number. I want to add to my array formula so if the item does have a LUMP quantity and the lump quantity is in the section location to put LUMP on the summary sheet. Is this possible??
    here is my formula
    =SUM(IF((ProjectInfo!$AE$2:$AE$307 =$B59)*(ProjectInfo!$AD$2:$AD$307= AA$10),ProjectInfo!$AF$2:$AF$307,""))
    projectInfo is the sheet where the list is.
    Column AE is the Item column on the projectinfo sheet
    column B on the summary sheet would be the item that i want to sum the quantities for
    Column AD is the section location column on the projectinfo sheet
    the AA$10 is the row and column of the section location i want to limit the sum of the quantities to
    the formula is in cell AA59
    So it will sum all the quantities in the list on the projectinfo sheet if the item and section location match whats specified on the summary sheet.

    Any one have any ideas on getting LUMP to display if its a lump quantity. The Lump can only show up if the item on the projectinfo sheet has LUMP for that Item AND in that section location.


    EDIT:
    Column AF on the ProjectInfo Sheet is the quantity column
    Last edited by jed38; 02-10-2014 at 05:32 PM. Reason: adding information

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Array SUMIF formula to sum if numbers but it not place text

    If you only expect one row to match try using a LOOKUP formula like this

    =IFERROR(LOOKUP(2,1/(ProjectInfo!$AE$2:$AE$307=$B59)/(ProjectInfo!$AD$2:$AD$307=AA$10),ProjectInfo!$AF$2:$AF$307),"No match")

    that will return a number or a text value, whatever is in the relevant cell
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    08-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Array SUMIF formula to sum if numbers but it not place text

    i will have multiple rows match which is why i have the SUM at add the quantities. A lump item will always have a LUMP in the Quantity I would want to know if its in that location at that point. but i need it mixed in with the SUM IF formula so i can handle any item

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Array SUMIF formula to sum if numbers but it not place text

    OK try this version

    =IF(COUNTIFS(ProjectInfo!$AF$2:$AF$307,"Lump",ProjectInfo!$AE$2:$AE$307,$B59,ProjectInfo!$AD$2:$AD$307,AA$10),"Lump",SUMIFS(ProjectInfo!$AF$2:$AF$307,ProjectInfo!$AE$2:$AE$307,$B59,ProjectInfo!$AD$2:$AD$307,AA$10))

  5. #5
    Forum Contributor
    Join Date
    08-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Array SUMIF formula to sum if numbers but it not place text

    Figured it out
    Array formula below

    =IF((ProjectInfo!$AE$2:$AE$307=$B59)*(ProjectInfo!$AF$2:$AF$307="LUMP")*(ProjectInfo!$AD$2:$AD$307= AA$10),"LUMP",SUM(IF((ProjectInfo!$AE$2:$AE$307 =$B59)*(ProjectInfo!$AD$2:$AD$307= AA$10),ProjectInfo!$AF$2:$AF$307,"")))

  6. #6
    Forum Contributor
    Join Date
    08-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Array SUMIF formula to sum if numbers but it not place text

    Daddylonglegs
    your also worked thanks for the help

+ 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. Help with a formula to place numbers in the right cell
    By MariaSevak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2013, 02:42 PM
  2. sumproduct of a number array and a text array starting with 2 numbers
    By Bishonen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-21-2013, 11:48 AM
  3. Solved! Using VLOOKUP when array has both numbers and numbers stored as text
    By Kari Gulbrandsen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2012, 01:58 PM
  4. Column Has Text and Numbers, Need To SUMIF Only Numbers
    By Karleajensar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-04-2008, 01:27 PM
  5. Numbers round down when a 5 is in the third decimal place using a formula
    By Jbagger in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2007, 11:59 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