+ Reply to Thread
Results 1 to 7 of 7

Complex Search Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    11-24-2014
    Location
    Naples, Florida
    MS-Off Ver
    14
    Posts
    10

    Question Complex Search Formula

    Hi Community,

    I am trying to enhance a formula I created, but I am stuck now.

    File: E&V Florida Listing Log Template MASTER_Prototype_1.0.xlsx

    Situation:
    There is an Input sheet "SellerInput"

    Pic1.jpg

    and there is an Output Sheet called "Seller Side"
    pic2tiny.jpg


    My formula is searching in SellerInput all rows with a specific "Office" and a specific "Range" and pastes the content of the row in the Seller Side sheet.

    Formula:
    =IFERROR(INDEX('Seller Input'!B$2:B$1000,AGGREGATE(15,6,ROW('Seller Input'!B$2:B$1000)/(('Seller Input'!$A$2:$A$1000="Anna Maria Island")*('Seller Input'!$K$2:$K$1000="30 Days")),ROW()-5)-1,1),""))

    That works very well. Now the formular has to search for another criterium on top: "Seller/Buyer". It should search first for all rows with the criterias above plus search for "s" as seller and list all these first, after it is finished it should run through the same procedure, but with "b" instead and list them under the found "s" rows.

    My try:
    =IFERROR(INDEX('Seller Input'!B$2:B$1000,AGGREGATE(15,6,ROW('Seller Input'!B$2:B$1000)/(('Seller Input'!$A$2:$A$1000="Anna Maria Island")*('Seller Input'!$K$2:$K$1000="30 Days")*('Seller Input'!$B$2:$B$1000="b")),ROW()-5)-1,1),IFERROR(INDEX('Seller Input'!B$2:B$1000,AGGREGATE(15,6,ROW('Seller Input'!B$2:B$1000)/('Seller Input'!$B$2:$B$1000="s"),ROW()-9)-1,1),""))

    It works, but I have to manually change the number in bolt, depending on how many results were found...What is wrong here? Hope somebody can help me.


    PS:
    Maybe that would be all easier with VBA or other stuff, but because I am absolutely not familiar with these things I had to do it this way.
    Attached Images Attached Images
    Last edited by Nevec90; 11-25-2014 at 10:13 AM. Reason: Attaching file

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Complex Search Formula

    Dont' put image, more clear about what you need if you upload your sample workbook, click :Go Advanced" button and find paperclip button to attach the file.

    regards

  3. #3
    Registered User
    Join Date
    11-24-2014
    Location
    Naples, Florida
    MS-Off Ver
    14
    Posts
    10

    Re: Complex Search Formula

    Hi,

    Here the uploaded workbook. I also attached it in the beginning of the original post.
    Last edited by Nevec90; 11-25-2014 at 10:14 AM. Reason: More information

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Complex Search Formula

    Pls find file attach, hope this works......

    regards

  5. #5
    Registered User
    Join Date
    11-24-2014
    Location
    Naples, Florida
    MS-Off Ver
    14
    Posts
    10

    Re: Complex Search Formula

    Wow, that was fast. Works perfectly, thank you a lot!

    I will work on an enhanced version of this excel these days. Maybe I will have another question then. Thank you again!

  6. #6
    Registered User
    Join Date
    11-24-2014
    Location
    Naples, Florida
    MS-Off Ver
    14
    Posts
    10

    Re: Complex Search Formula

    Hi,

    I adjusted the workbook now a bit. Locations are now single tabs to get a better overview. I applied the formula but it creates now empty rows again. Can you give me some comments on the formula (Would like to understand it better, now it is too complicated for me...). Is it also possible to optimize it? (Calculation takes now very long). Thank you in advance!

    Excel-File (Was too big for the forum upload...)

  7. #7
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Complex Search Formula


+ 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. [SOLVED] Complex SUMIFS (SUMPRODUCT?) formula w/ wildcards (SEARCH?)
    By markl41 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-11-2012, 02:24 PM
  2. Complex Micro/Formula to Search from one sheet and Return Value on other sheet
    By atthershabbir in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2012, 12:57 PM
  3. Complex Micro/Formula to Search from one File and Return Value in Another File
    By atthershabbir in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-29-2012, 01:31 AM
  4. Complex "IF" Formula to search for text
    By ninti777 in forum Excel General
    Replies: 6
    Last Post: 08-24-2011, 09:30 PM
  5. [SOLVED] Complex Formula Solution using Search and IF
    By XP in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2006, 12:25 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