+ Reply to Thread
Results 1 to 7 of 7

Aggregate Function Not Workinbg with Multi Counties

  1. #1
    Forum Contributor
    Join Date
    11-23-2013
    Location
    La Crosse, Wi
    MS-Off Ver
    Excel 2010
    Posts
    113

    Aggregate Function Not Workinbg with Multi Counties

    I am working on a large tornado database. Everythig works well with the following equation

    =IFERROR(AGGREGATE(14,6,$B$2:$B$19/($E15=$A$2:$A$19)/ISNUMBER(FIND(LEFT(F$14,2),$C$2:$C$19)),1),"")

    However, when I can multicounties affected, the equation fails. I tried replacing $E15 with "*Dodge*" and "Dodge (MN)". The equation fails and it provides me with the earlier date or blank.

    Any help would be greatly appreciated.

    Jeff B
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,788

    Re: Aggregate Function Not Workinbg with Multi Counties

    How about
    =IFERROR(AGGREGATE(14,6,$B$2:$B$19/(ISNUMBER(SEARCH($E15,$A$2:$A$19)))/ISNUMBER(FIND(LEFT(F$14,2),$C$2:$C$19)),1),"")

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Aggregate Function Not Workinbg with Multi Counties

    F15=IFERROR(AGGREGATE(14,6,$B$2:$B$19/ISNUMBER(SEARCH(TRIM($E15),$A$2:$A$19)*SEARCH(TRIM($C$2:$C$19),F$14)),1),"")
    Try this, Copy and paste across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Aggregate Function Not Workinbg with Multi Counties

    Or try:

    =IFERROR(AGGREGATE(14,6,$B$2:$B$19/ISNUMBER(SEARCH($E16,$A$2:$A$19))/(RIGHT(F$14,2)=RIGHT($C$2:$C$19,2)),1),"")

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Aggregate Function Not Workinbg with Multi Counties

    or can try
    f15=IFERROR(AGGREGATE(14,6,$B$2:$B$19/ISNUMBER(SEARCH(TRIM($E15),$A$2:$A$19)*SEARCH(" "&TRIM($C$2:$C$19)&" "," "&F$14&" ")),1),"")

  6. #6
    Forum Contributor
    Join Date
    11-23-2013
    Location
    La Crosse, Wi
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Aggregate Function Not Workinbg with Multi Counties

    Thanks everyone for the help!

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,788

    Re: Aggregate Function Not Workinbg with Multi Counties

    You're welcome & thanks for the feedback.

+ 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. Need to add counties to my spreadsheet that has city state and zip
    By joefaz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2020, 08:42 AM
  2. [SOLVED] VBA Aggregate Function
    By Gregor y in forum Access Programming / VBA / Macros
    Replies: 9
    Last Post: 02-27-2017, 03:17 AM
  3. [SOLVED] AGGREGATE Function
    By chief_abound in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-03-2015, 12:48 AM
  4. Matching zip codes to counties
    By kyohnke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2015, 04:30 PM
  5. Aggregate Function Using Sum
    By gtbaseball7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-01-2015, 02:19 PM
  6. [SOLVED] Creating a function to output a region based on a list of counties
    By buckje123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2014, 09:45 AM
  7. Aggregate function
    By stefantem in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2006, 04:47 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