+ Reply to Thread
Results 1 to 12 of 12

Formula problem: percentage of dollar value - another dollar value *SOLVED*

  1. #1
    Registered User
    Join Date
    02-20-2011
    Location
    NH
    MS-Off Ver
    Excel 2003
    Posts
    4

    Formula problem: percentage of dollar value - another dollar value *SOLVED*

    Hello, I have a formula I am having trouble with. I am looking to take a dollar amount from a cell say A1 and subtract %2.9 from it and then subtract $0.30. I have a formula that works (=A1*0.029+0.3) but if there is no value in A1 it displays "%0.30".

    any help would be greatly appreciated.
    Thank you,
    Jonathan
    Last edited by lostissues; 02-20-2011 at 11:50 PM.

  2. #2
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: need help with a formula please.

    I would add an IF statement to the start of your formula --

    =IF(A1="","",A1*0.029+0.3)

    Also, according to your explanation, would it be -.3?
    ______________________________________
    "Vision without Execution is a Hallucination"
    Edison

  3. #3
    Registered User
    Join Date
    02-20-2011
    Location
    NH
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: need help with a formula please.

    that formula does come out correct but it still displays the $0.30
    and yes I messed up, I am trying to make a spreadsheet for selling items on Ebay and I am trying to get the paypal fee. their fee is %2.9 of the total +$.30.
    so I want to get %2.9 of a number and then add $.30 to that. sorry I confused myself.

    This is what I have:
    $ item sold for - C2
    $ shipping - D2
    buyer payment total - E2 formula is "=SUM(C2:D2)"
    paypal fee - J2 formula is "=E2*0.029+0.3"

    and this setup creates the correct fee but If I copy the formula down to the cells below it is displays $0.30 into every cell.

  4. #4
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: need help with a formula please.

    If there is nothing in A1, the result should be blank. Isn't that what you want?

  5. #5
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: need help with a formula please.

    Try putting a $ sign between E&2 ($E$2) before copying anywhere. Does that help? Also, the original solution will only work if A1 or the cell it represented is empty.

  6. #6
    Registered User
    Join Date
    02-20-2011
    Location
    NH
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: need help with a formula please.

    ok, this is my excel file right now *removed*
    the one that I am having trouble with is the column "paypal fee"
    Last edited by lostissues; 02-20-2011 at 08:43 PM.

  7. #7
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: need help with a formula please.

    You should always post and example and not your real work. Having said that, you will want the following:

    =IF(E2>0,E2*0.029+0.3,"")

    Also, you will then see and error in most cells within column K (this is because there is nothing in I and K. The formula to "correct" is

    =IF(ISERROR(I2-J2),"",(I2-J2))

    Good look and please provide feedback.

  8. #8
    Registered User
    Join Date
    02-20-2011
    Location
    NH
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: need help with a formula please.

    Quote Originally Posted by dreicer_Jarr View Post
    You should always post and example and not your real work. Having said that, you will want the following:

    =IF(E2>0,E2*0.029+0.3,"")

    Also, you will then see and error in most cells within column K (this is because there is nothing in I and K. The formula to "correct" is

    =IF(ISERROR(I2-J2),"",(I2-J2))

    Good look and please provide feedback.
    looks like it worked. Thanks.
    is there any reason to not post the real work other then people seeing information? I removed the file anyway.

  9. #9
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: need help with a formula please.

    The moderators have always told me to use a sample file. I was just trying to save you the trouble --- frankly, it does not bother me. Shh!

  10. #10
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: need help with a formula please.

    The other thing you will want to do is go to edit/advanced and then mark the post "SOLVED".

    Have a good one...

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: need help with a formula please.

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  12. #12
    Registered User
    Join Date
    02-20-2011
    Location
    Dhaka,Bangladesh
    MS-Off Ver
    Dhaka
    Posts
    4

    Re: need help with a formula please.

    Really a topic that I wasn't being able to solve, but now I have the solution.

+ 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