+ Reply to Thread
Results 1 to 5 of 5

if column B equals "cash" then column H equals 0

  1. #1
    Registered User
    Join Date
    04-26-2011
    Location
    penticton,canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    if column B equals "cash" then column H equals 0

    How do I right a formula for:

    if column B (invoice number) equals "cash" then column H (HST @ 12% of B) equals 0

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: if column B equals "cash" then column H equals 0

    Perhaps try this in H2

    =N(B2)*12%

    That will give 12% of B2 but if B2 is not a number (e.g. text like "cash") the formula will return 0
    Audere est facere

  3. #3
    Registered User
    Join Date
    04-26-2011
    Location
    penticton,canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: if column B equals "cash" then column H equals 0

    Quote Originally Posted by daddylonglegs View Post
    Perhaps try this in H2

    =N(B2)*12%

    That will give 12% of B2 but if B2 is not a number (e.g. text like "cash") the formula will return 0
    Thanks, I tried it,then realized I omitted that the 12% was derived from column "E"

    so column B is either an invoice number (ie "23456" or "cash")
    .... column E is the amount charged (ie $100)
    and column H is 12% of column E (ie $12 or hopefully $0 if I can get the formula to read the column B entry of "cash" as not a number)

    Clear as mud I'm sure, any help is appriciated

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: if column B equals "cash" then column H equals 0

    OK, try this for H2

    =IF(B2="Cash",0,E2*12%)

  5. #5
    Registered User
    Join Date
    04-26-2011
    Location
    penticton,canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: if column B equals "cash" then column H equals 0

    It worked! thanks a bunch!

+ 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