+ Reply to Thread
Results 1 to 7 of 7

CountIfs any value in a column starts with the value in another column

  1. #1
    Forum Contributor
    Join Date
    06-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    CountIfs any value in a column starts with the value in another column

    Hello,

    I have the following formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I need to change the 'Renewal Chart'!$B:$B,$B20 part to any value that starts with B20

    So if B20 if A1 and in column B of Renewal Chart there is a A1 and and A1-DL it will count both.

    Thanks in advance!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: CountIfs any value in a column starts with the value in another column

    Try changing $B20 to $B20&"*"

  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: CountIfs any value in a column starts with the value in another column

    Maybe this...

    =COUNTIFS('Renewal Chart'!$L:$L,"",'Renewal Chart'!$B:$B,$B20&"*",'Renewal Chart'!$I:$I,EOMONTH(H$17,0))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: CountIfs any value in a column starts with the value in another column

    Try

    =COUNTIFS('Renewal Chart'!$L:$L,"",'Renewal Chart'!$B:$B,"*" &$B20 &"*",'Renewal Chart'!$I:$I,EOMONTH(H$17,0))

  5. #5
    Forum Contributor
    Join Date
    06-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: CountIfs any value in a column starts with the value in another column

    Thanks All! That Did it. I was trying "$B20*" I still have a lot to learn.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: CountIfs any value in a column starts with the value in another column

    You're welcome.

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

    Re: CountIfs any value in a column starts with the value in another column

    You're welcome. We appreciate 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. [SOLVED] copy to empty column starts with column E
    By dragavs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2014, 10:54 PM
  2. [SOLVED] vba code to replace the column names for those column name "Proposal that starts with "1."
    By mvneema in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-31-2014, 01:21 PM
  3. SUM columns B & C if Column A starts with a one
    By bbrunof in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-11-2014, 09:04 PM
  4. I need to remove the data in column B that starts with <img alt=
    By RobinPrice in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-07-2014, 03:56 PM
  5. Autofill a column that starts with a blank
    By juanpmatheus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2013, 04:56 PM
  6. keep column if text starts with letter
    By dundo84 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-21-2013, 08:27 PM
  7. modify column values that starts with 1
    By spyrule in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2007, 11:43 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