+ Reply to Thread
Results 1 to 6 of 6

Calculating a Formula on a Single Line

  1. #1
    Registered User
    Join Date
    09-18-2007
    Posts
    14

    Calculating a Formula on a Single Line

    Hi

    I have a relatively simple formula but woiuld like to calculate it in 1 formulation,

    Total Level 3 Over 12 min
    5,855 121 216

    I want to calculate the the % of bags after deducting the Level 3 & Over 12 min bags

    i.e. Total bags - Level 3 = 5734
    5734 - Level 3 = 5518
    5518 / Total Bags = 94.2%

    How can I put the following into a line formula

    Many Thanks
    Last edited by Fabbyfil; 12-04-2009 at 04:19 PM. Reason: inapropriate title

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208

    Re: Calculating a Formula on a Single Line

    Assuming the numbers are in B2, B3, and B4, try:

    =(B2-B3-B4)/B2

    HTH,
    Jason

  3. #3
    Registered User
    Join Date
    09-18-2007
    Posts
    14

    Re: Calculating a Formula on a Single Line

    Ja

    Thanks for the reply but that is the incorrect result.

    That formula would give for example

    6,289 - 228 - 99 / 6,289 = 94.8%

    but if I calculate it the following way :

    6,289 - 228 = 6061
    6061 - 99 = 5962
    5962 / 6061 = 98.3%

    It's the above I would like in one formula if possible


    Thanks
    Last edited by Fabbyfil; 12-04-2009 at 04:47 PM.

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208

    Re: Calculating a Formula on a Single Line

    Ok, try this:

    =(B2-B3-B4)/(B2-B3)

    Jason

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,006

    Re: Calculating a Formula on a Single Line

    Or =1+B4/(B3-B2)

    Wich is same as jason write but nicer

    Wich can be adjusted into: =IF(B3=B2;"";1+B4/(B3-B2))
    Never use Merged Cells in Excel

  6. #6
    Registered User
    Join Date
    09-18-2007
    Posts
    14

    Re: Calculating a Formula on a Single Line

    All

    Excellent, just what I wanted thank you

+ 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