+ Reply to Thread
Results 1 to 5 of 5

formula that counts numbers starting with x in one column + word in another column

  1. #1
    Registered User
    Join Date
    09-30-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    3

    formula that counts numbers starting with x in one column + word in another column

    Hi,

    Example:

    Column A = Traffic Type
    Free
    Paid
    Direct
    Referral

    Column B = Phone IVR number sequence
    0
    0
    1
    11
    2
    2
    21
    22
    231
    33
    3
    9

    I need to create a formula that takes into account multiple criteria (A,B). I need to count a phone IVR number starting with say number "2" (column B) and I need to check how many calls where that number was selected came from the different traffic types in this example "free" (column A). So then I can re-use the same formula for each IVR number and just change the "traffic type" word from column A.

    I am already using a sumproduct formula to only count the numbers in Column B for "startswith" and it works fine. Formula: =SUMPRODUCT(--(LEFT(AC2:AC6909,1)="1"))

    Appreciate any assistance.

    Thanks
    Matt

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: formula that counts numbers starting with x in one column + word in another column

    Hi Matt,

    Welcome to forum.

    Please attach your sample spreadsheet with expected result for better understanding to get solution fast way.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: formula that counts numbers starting with x in one column + word in another column

    Use cells to hold the criteria.

    A1 = 1
    B1 = Free

    =SUMPRODUCT(--(LEFT(AC2:AC6909)=A1&""),--(Range=B1))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    09-30-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    3

    Re: formula that counts numbers starting with x in one column + word in another column

    Hi shukla

    thanks for your response. I will try Tony's recommendation and if no luck with provide a sample file.

    Thanks
    Matt

  5. #5
    Registered User
    Join Date
    09-30-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    3

    Re: formula that counts numbers starting with x in one column + word in another column

    Hi Tony,

    Thanks! for the recommendation. I will try this and let you know how I go.

+ 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. Replies: 10
    Last Post: 03-25-2015, 09:53 PM
  2. [SOLVED] Product of Column Counts in a Single Formula
    By k64 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2015, 10:35 AM
  3. Replies: 2
    Last Post: 01-08-2014, 03:50 PM
  4. [SOLVED] Formula Query - COUNTIF? Column A contains word and Column B contains word
    By HelenJH in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-14-2013, 11:23 AM
  5. copy data from one column to column on another sheet starting with first open cell
    By indiana115 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2013, 05:50 PM
  6. [SOLVED] Sum all the numbers in one column that match a word in another column
    By Overload in forum Excel General
    Replies: 3
    Last Post: 10-04-2012, 08:01 PM
  7. Replies: 3
    Last Post: 06-12-2006, 11:30 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