+ Reply to Thread
Results 1 to 4 of 4

Wild Characters in "IF" function

  1. #1
    Registered User
    Join Date
    11-17-2005
    Posts
    4

    Wild Characters in "IF" function

    I've seen in this forum that someone already asked the question but there was no answer...
    I'm also unable to use the wild character (*) in my IF function - I want the formula to return $51.44 and $25.31 amounts in column D if "EXON" chain is encountered in cells of column B. My statement looks like this: =IF(B4="EXXON*",C4,0) but it doesn't work...

    Calumn A Column B Column C Column D
    10/29/2005 HEINIE'S MARKET $12.28
    10/30/2005 VAIL PASS SALES 0374 $198.00
    10/29/2005 EINSTEIN BROS #1793 $7.54
    10/27/2005 EXXONMOBIL75 $51.44 $51.44
    10/27/2005 HEINIE'S MARKET $11.97
    10/27/2005 EXXONMOBIL35 $25.31 $25.31

    Any ideas????
    Thanks,
    jakar

  2. #2
    Anne Troy
    Guest

    Re: Wild Characters in "IF" function

    Try this:
    =IF(left(B4,5)="EXXON",C4,0)
    ************
    Anne Troy
    VBA Project Manager
    www.OfficeArticles.com

    "jakar" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I've seen in this forum that someone already asked the question but
    > there was no answer...
    > I'm also unable to use the wild character (*) in my IF function - I
    > want the formula to return $51.44 and $25.31 amounts in column D if
    > "EXON" chain is encountered in cells of column B. My statement looks
    > like this: =IF(B4="EXXON*",C4,0) but it doesn't work...
    >
    > Calumn A Column B
    > Column C Column D
    > 10/29/2005 HEINIE'S MARKET $12.28
    > 10/30/2005 VAIL PASS SALES 0374 $198.00
    > 10/29/2005 EINSTEIN BROS #1793 $7.54
    > 10/27/2005 EXXONMOBIL75 $51.44 $51.44
    > 10/27/2005 HEINIE'S MARKET $11.97
    > 10/27/2005 EXXONMOBIL35 $25.31 $25.31
    >
    > Any ideas????
    > Thanks,
    > jakar
    >
    >
    > --
    > jakar
    > ------------------------------------------------------------------------
    > jakar's Profile:
    > http://www.excelforum.com/member.php...o&userid=28844
    > View this thread: http://www.excelforum.com/showthread...hreadid=485929
    >




  3. #3
    Dave Peterson
    Guest

    Re: Wild Characters in "IF" function

    =if(left(b4,5)="exxon",c4,0)

    is one way.

    jakar wrote:
    >
    > I've seen in this forum that someone already asked the question but
    > there was no answer...
    > I'm also unable to use the wild character (*) in my IF function - I
    > want the formula to return $51.44 and $25.31 amounts in column D if
    > "EXON" chain is encountered in cells of column B. My statement looks
    > like this: =IF(B4="EXXON*",C4,0) but it doesn't work...
    >
    > Calumn A Column B
    > Column C Column D
    > 10/29/2005 HEINIE'S MARKET $12.28
    > 10/30/2005 VAIL PASS SALES 0374 $198.00
    > 10/29/2005 EINSTEIN BROS #1793 $7.54
    > 10/27/2005 EXXONMOBIL75 $51.44 $51.44
    > 10/27/2005 HEINIE'S MARKET $11.97
    > 10/27/2005 EXXONMOBIL35 $25.31 $25.31
    >
    > Any ideas????
    > Thanks,
    > jakar
    >
    > --
    > jakar
    > ------------------------------------------------------------------------
    > jakar's Profile: http://www.excelforum.com/member.php...o&userid=28844
    > View this thread: http://www.excelforum.com/showthread...hreadid=485929


    --

    Dave Peterson

  4. #4
    Registered User
    Join Date
    11-17-2005
    Posts
    4
    thank you very much... - it worked...
    jakar

+ Reply to Thread

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