+ Reply to Thread
Results 1 to 6 of 6

IF Function using text

  1. #1
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    15

    Post IF Function using text

    Hi, appreciate any help you can give:

    I have a database with column 'type'- this has various text eg. "hv","group","pr/group", "1:1", etc the text in an many combinations

    i would like to find the average of another column IF 'type'=1:1 or group in any combination.

    previous formulas have let me search like this "*"&"1:1"&"*" but i cant seem to do this with averages or ifs. so i came up with a plan- if i add another column next to type and code anything with 1:1 or group as '1' and everything else a 2 then i can do what i need BUT i cant even get my new column to accurately show the '1' and '2'.

    this is the closest i got =IF(OR(ISNUMBER(SEARCH("*"&"1"&"*",'RCI Data'!K3)),ISNUMBER(SEARCH("*"&"u"&"*",'RCI Data'!K3))),1,2)
    nb 1 is unique to the 1:1 and u to group

    HELP please??

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,605

    Re: IF Function using text

    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

  3. #3
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: IF Function using text

    actually when i created the attachment to send you i figured it out thanks anyway

  4. #4
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: IF Function using text

    Pls post the answer you got for the future reference of others
    Please make the Post as solved, when you get your answer & Click * if you like my suggestion

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,605

    Re: IF Function using text

    Glad to hear that

  6. #6
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: IF Function using text

    =IF(OR(ISNUMBER(SEARCH("*"&"1"&"*",c4)),ISNUMBER(SEARCH("*"&"u"&"*",c4))),1,2)
    i formated c4 as text too(not sure that made a difference)

+ 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: 1
    Last Post: 04-24-2014, 12:25 AM
  2. InStr function doesn't find specific text, but finds any text in column and runs code
    By mikey3580 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2014, 03:50 AM
  3. [SOLVED] function IF to return text based if text contains exact text
    By in nomine noctis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2013, 06:25 AM
  4. Replies: 4
    Last Post: 07-25-2013, 05:28 AM
  5. IF function: Using text in logical_test with multiple variables and replacing with text
    By SarahRachelJones in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-25-2012, 02:17 PM

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