Closed Thread
Results 1 to 9 of 9

Most Common text result in a selection If certain value present

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Mac 2011
    Posts
    67

    Most Common text result in a selection If certain value present

    Here's my sheet showing the data I'm trying to collect on a separate front table

    Screen Shot 2015-06-18 at 5.51.08 PM.png

    I'm trying to display the most common "Ad Source" for all calls placed to "Clinic Location" "ME"

    Here's my formula
    =IF(('PCC Call Data'!J3:J246,(INDEX('PCC Call Data'!B3:B246,MODE(IF(('PCC Call Data'!B3:B246<>"")*ISNA(MATCH('PCC Call Data'!B3:B246,$Z$466:$Z466,0)),MATCH('PCC Call Data'!B3:B246,'PCC Call Data'!B3:B246,0)))))),"")

    I placed the "IF" statement at the front of the "INDEX" statement but I'm not getting a positive result. the INDEX statement functions well on its own, grabbing the most common result, but I can't expand it to include the IF statement for each different locations.

    I'm looking for location-specific results for our inbound marketing campaigns.

    Appreciate any help I can get.
    Thanks!
    Alex
    Last edited by AMeloche; 06-18-2015 at 06:38 PM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Most Common text result in a selection If certain value present

    Probably main reason why it is not answered for quite a long time is ... no data to test, so:

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    06-18-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Mac 2011
    Posts
    67

    Re: Most Common text result in a selection If certain value present

    Universal Reporting upload.xlsx

    actual sheet attached.

    Hoping for any help at all.

    Thanks for the ti[p on uploading

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Most Common text result in a selection If certain value present

    I think that checking location shall go inside MODE part, so:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    of course array formula, and changed addressing to absolute - othewise with copying down the referenced ranges in PCC Call data sheet would move

  5. #5
    Registered User
    Join Date
    06-18-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Mac 2011
    Posts
    67

    Re: Most Common text result in a selection If certain value present

    Very clever! I saw your reference to the clinic location matching the front page reference... very impressive. Thank you very much for this!

  6. #6
    Registered User
    Join Date
    06-18-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Mac 2011
    Posts
    67

    Re: Most Common text result in a selection If certain value present

    Kaper - using the same workbook I'd like to count the new patients on the PCC Call Data form (some are marked with "Y" and some are marked with "X" so it needs to me "" or "<>") for each individual location. Have you got a suggestion for this also?

    Thank you for your help.

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Most Common text result in a selection If certain value present

    In K4 on "Display Sheet":
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down

  8. #8
    Registered User
    Join Date
    06-18-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Mac 2011
    Posts
    67

    Re: Most Common text result in a selection If certain value present

    THANKS KAPER! !

    Lastly, I want to (without a pivot table) be able to select a month's worth of data (using a dropdown list and an IF statement) and display the practice-specific data on the 'Display Sheet". The data would come from the 'PCC Call Data' sheet.

    Example: Select "June" from dropdown list and the practice-specific data on the 'Display Sheet' will show the data only for June (the months are separated in the 'PCC Call Data' sheet)

    I realize this is a large endeavour. Thank you for any possible he

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,673

    Re: Most Common text result in a selection If certain value present

    Closed at AMeloche's request to re-open in Commercial Services.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy common number present in multiple rows
    By vanitarathod in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-12-2014, 06:57 AM
  2. Replies: 1
    Last Post: 08-14-2013, 10:41 PM
  3. [SOLVED] Help needed, search in database and present result.
    By Nikorasu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-05-2012, 11:05 AM
  4. Can't seem to get the automatic selection of data present down!
    By wantucce in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-18-2008, 04:51 AM
  5. Finding the most common (and 2nd, 3rd most common) text
    By sprite_green in forum Excel General
    Replies: 2
    Last Post: 11-23-2006, 11:56 AM

Tags for this Thread

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