+ Reply to Thread
Results 1 to 7 of 7

Exclude certain cells in a row not to be included in a function.

  1. #1
    Forum Contributor
    Join Date
    03-14-2017
    Location
    london, england
    MS-Off Ver
    office 365
    Posts
    173

    Exclude certain cells in a row not to be included in a function.

    Hello,

    Im not sure what exactly I'm looking for this time.

    From the data base of information I have I wish for each "specie" which are in Column B to add together the number of "boxes" in Column E and the "total kg" in column J and appear
    in Cells M7, N7 & O7.

    I only want the totals for each species to Appear rather than that of each size. But id like this information to appear automatically rather than having to perform a search for each specie.

    Hopefully that makes sense.

    Dom
    Attached Files Attached Files
    Last edited by Dom.Knight; 11-30-2019 at 06:19 AM.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Perform Multiple Searches

    Try:
    M7: =IFERROR(LOOKUP(2,1/(COUNTIF($M$6:M6,$B$7:$B$101)=0),$B$7:$B$101),"")
    N7 =SUMIF($B:$B,M7,$E:$E)
    O7: =SUMIF($B:$B,M7,$J:$J)
    Click the * to say thanks.

  3. #3
    Forum Contributor
    Join Date
    03-14-2017
    Location
    london, england
    MS-Off Ver
    office 365
    Posts
    173

    Re: Perform Multiple Searches

    Thanks for the answer, is there a way in which I could exclude Cell B47+B48+B9+B50 that contains the word specie from the results in the criteria.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,607

    Re: Can i exclude certain cells in a row not to be included in a function.

    Two options:
    1. Select cell A7 > view tab > freeze panes > freeze panes (1st option)
    Then delete cells A47:J50 and A93:J96
    2. Use the table produced by PaulM100's formulas as the calculation engine and then in three other columns (Q:S in attached file) use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Can i exclude certain cells in a row not to be included in a function.

    Hi,

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



    ...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.
    Click just below left if it helps, Boo?ath?

  6. #6
    Forum Contributor
    Join Date
    03-14-2017
    Location
    london, england
    MS-Off Ver
    office 365
    Posts
    173

    Re: Can i exclude certain cells in a row not to be included in a function.

    Hello, is there away in which i can adjust the formulae in the above post so that any specie in column B which has GH OR WF in column C appears as a seperate specie in the report in columns M, N and O.

    For example cod GH, Then cod WF
    Last edited by Dom.Knight; 02-20-2020 at 07:45 AM.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,607

    Re: Can i exclude certain cells in a row not to be included in a function.

    One way would be to add a column (L in the attached file) to the data which would conditionally concatenate columns B and C using: =IF(OR(C7="GH",C7="WF"),B7&" "&C7,B7)
    The formula for column M becomes*: =IFERROR(INDEX($L$7:$L$102,MATCH(0,COUNTIF($M$3:M6,$L$7:$L$102)+($L$7:$L$102="Species")+($L$7:$L$102=0),0)),"")
    The formula for column N becomes: =IF(M7="","",SUMIF($L:$L,M7,$E:$E))
    The formula for column O becomes: =IF(M7="","",SUMIF($L:$L,M7,$J:$J))
    *Denotes an array entered formula (see post #5)
    Note that the added column may be moved and/or hidden for aesthetic purposes.
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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. How to exclude rows from being included in a date filter
    By SAFCBEAR in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-02-2017, 09:32 AM
  2. [SOLVED] Exclude cells containing text from SUMPRODUCT function
    By Uomoviso in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-17-2016, 09:20 AM
  3. COUNT but exclude if dat and name was included
    By TuboDieselOne in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-17-2016, 04:48 PM
  4. VBA function help. Concat cells based on parallel value. Function Included!
    By xsa in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-18-2013, 10:18 AM
  5. COUNTIF function to exclude hidden cells
    By penfold1992 in forum Excel General
    Replies: 8
    Last Post: 08-15-2012, 02:01 PM
  6. Can an IF function be included in a Code?
    By keithnrhonda in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2010, 02:00 AM
  7. Replies: 1
    Last Post: 04-03-2008, 04:49 PM

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