Results 1 to 7 of 7

IF function working with LEN and Substitute

Threaded View

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    leicester
    MS-Off Ver
    Excel 2003
    Posts
    3

    IF function working with LEN and Substitute

    Hi

    I have a formula that looks up the number of occurances of a single character in a column, some cells contain more than one character.

    =SUM(LEN(range)-LEN(SUBSTITUTE(range,"A","")))

    I want to add an IF function to this so that it will only carry out the above formula IF a certain word appears in another column of that same row? But then I don't want this to cancel out and return a 0 if the word does not appear in a row.

    Row 1 Row 2
    Red .........A
    Blue..........A
    Red .........A
    Red......... A

    For example with the above if the certain word was "red" it will only return a value of 3 as the 2nd column should not count.

    Any help would be appreciated

    Thanks
    Last edited by cd109; 04-12-2012 at 08:13 AM.

Thread Information

Users Browsing this Thread

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

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