Results 1 to 5 of 5
  1. #1
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    IF Formula (Excel 97)

    I have not touched Excel for a few months and have become extremely rusty.

    I am looking for the formula to calculate GST on a purchase IF it is GST Inclusive. In the attachment you will see I want GST calculated ONLY if there is a G in column A.

    Kerry

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: IF Formula (Excel 97)

    In C4 add something like (use the correct percentage):
    <pre>=IF(UPPER(A4)="G",B4*0.05,"")</pre>

    To display "nothing" if no "G"
    or
    <pre>=IF(UPPER(A4)="G",B4*0.05,0)</pre>

    of you want to display a zero

    Then in D4 enter:
    <pre>=SUM(B4:C4)</pre>


    Copy C44 down the columns

    Steve

  3. #3
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Re: IF Formula (Excel 97)

    Thankyou Steve. You have helped me on my way. I thought I had it sorted, however, I wonder if I could turn this around a little.

    I want to say if D8 is "F" then do nothing and if D8 is blank then Divide E8 by 11.
    =IF(UPPER(D8)="F",0) - I can make this much happen but not sure how to add the rest.

    Kerry

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: IF Formula (Excel 97)

    =IF(UPPER(D8)="F",0,IF(ISBLANK(D8),E8/11,0))

    But what if it is neither blank nor contains 'F'? The above formula will return zero, same as if it contains 'F"
    -John ... I float in liquid gardens
    UTC -7ąDS

  5. #5
    4 Star Lounger
    Join Date
    Apr 2002
    Location
    Northern Territory, Australia
    Posts
    471
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Re: IF Formula (Excel 97)

    Thank you John. Works perfectly!

    Kerry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •