+ Reply to Thread
Results 1 to 7 of 7

How do you do a formula for this?

  1. #1
    Registered User
    Join Date
    04-27-2005
    Posts
    4

    How do you do a formula for this?

    Hi,
    I have a excel like this:

    A B C D

    1 MAKE BEFORE AFTER

    2 Audi 154 340


    3 Toyota 165 350

    I want D to be the percentage difference between column B and C and used the following formula in D2 =SUM(100/(B2/(C2-B2))
    That gives me the right answer in D2 but for D3 I have to change the formula to read 3 instead of 2 and to do this for many rows is not very efficient. Is there a formula I can use to make column D read for the corresponding rows in colum B and C all the way down.
    Sorry if this is a really dumb simple question but Im pretty new at this and not real good at maths
    thanks.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Enter the following formula in D2 and copy down:

    =((C2-B2)/B2)*100

    To copy the formula to other cells...

    1) Select D2

    2) Edit > Copy

    3) Select cells to which you wish to copy

    4) Edit > Paste

    Hope this helps!

  3. #3
    Registered User
    Join Date
    04-27-2005
    Posts
    4
    Thanks the formula works but I still have to change it with each number ie. B2 must become B3 next line down. Is there a way I can use algebra like Bx then next line is Bx+1 or something???

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    If you follow the instructions I gave you in order to copy the formula to other cells, you'll find that the formula in D3 becomes...

    =((C3-B3)/B3)*100

    Isn't that what you're looking for?

  5. #5
    Registered User
    Join Date
    04-27-2005
    Posts
    4
    sorry my fault. Thanks a lot that works great. How can I get it to round up to the nearest whole number since im getting percentages like 19.99697 etc etc.
    thanks heaps

  6. #6
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    =ROUNDUP(((C2-B2)/B2)*100,0)

    Hope this helps!

  7. #7
    Registered User
    Join Date
    04-27-2005
    Posts
    4
    worked like a charm. Youre a legend!
    Thanks heaps

+ 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