Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. excel formula anyone

excel formula anyone

Scheduled Pinned Locked Moved The Weird and The Wonderful
question
12 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 0 0bx

    What is it supposed to do? My guess is it solves "L11 = x% of K11" for x. I fail to see what's wrong with it to be honest. :confused:

    Giraffes are not real.

    F Offline
    F Offline
    fuximus
    wrote on last edited by
    #3

    well yea, basically. It works, it just should have been.

    =L11/K11*100

    K 1 Reply Last reply
    0
    • F fuximus

      well yea, basically. It works, it just should have been.

      =L11/K11*100

      K Offline
      K Offline
      kwkonrad
      wrote on last edited by
      #4

      Maybe not; if K11 is the price you get, and L11 is the cost, then it will give you the revenue in percent

      1 Reply Last reply
      0
      • 0 0bx

        What is it supposed to do? My guess is it solves "L11 = x% of K11" for x. I fail to see what's wrong with it to be honest. :confused:

        Giraffes are not real.

        P Offline
        P Offline
        phil o
        wrote on last edited by
        #5

        A little maths : (1 - (K11 - L11)/K11) * 100 = (1 - (K11 / K11) + (L11 / K11)) * 100 = (1 - 1 + (L11 / K11)) * 100 = (L11 / K11) * 100 :)

        0 K 2 Replies Last reply
        0
        • P phil o

          A little maths : (1 - (K11 - L11)/K11) * 100 = (1 - (K11 / K11) + (L11 / K11)) * 100 = (1 - 1 + (L11 / K11)) * 100 = (L11 / K11) * 100 :)

          0 Offline
          0 Offline
          0bx
          wrote on last edited by
          #6

          Yeah... I think I'm going to bed early tonight. :zzz:

          Giraffes are not real.

          1 Reply Last reply
          0
          • P phil o

            A little maths : (1 - (K11 - L11)/K11) * 100 = (1 - (K11 / K11) + (L11 / K11)) * 100 = (1 - 1 + (L11 / K11)) * 100 = (L11 / K11) * 100 :)

            K Offline
            K Offline
            Klaus Werner Konrad
            wrote on last edited by
            #7

            No - it's (K11 - L11) !!! And also you should check operator precedence ! You should take another base course in math :-)

            P 1 Reply Last reply
            0
            • K Klaus Werner Konrad

              No - it's (K11 - L11) !!! And also you should check operator precedence ! You should take another base course in math :-)

              P Offline
              P Offline
              phil o
              wrote on last edited by
              #8

              Just prove what you say and I'll look for a maths course...

              M 1 Reply Last reply
              0
              • P phil o

                Just prove what you say and I'll look for a maths course...

                M Offline
                M Offline
                myramla
                wrote on last edited by
                #9

                >(1 - (K11 - L11)/K11) * 100 > = (1 - (K11 / K11) + (L11 / K11)) * 100 Where did the + came from ? (K11 - L11)/K11 is the same as (K11 / K11 ) - (L11 / K11) Besides, the parentheses signifies that it should be evaluated first. the formula is evaluated to; K11 - L11 then divided by K11, subtract the answer from 1 then multiplied by 100 to represent as a percentage. This is a valid income formula. if L11 = 100, K11 = 200, this will result into a 50% answer.

                B P 2 Replies Last reply
                0
                • M myramla

                  >(1 - (K11 - L11)/K11) * 100 > = (1 - (K11 / K11) + (L11 / K11)) * 100 Where did the + came from ? (K11 - L11)/K11 is the same as (K11 / K11 ) - (L11 / K11) Besides, the parentheses signifies that it should be evaluated first. the formula is evaluated to; K11 - L11 then divided by K11, subtract the answer from 1 then multiplied by 100 to represent as a percentage. This is a valid income formula. if L11 = 100, K11 = 200, this will result into a 50% answer.

                  B Offline
                  B Offline
                  BobJanova
                  wrote on last edited by
                  #10

                  Two minuses make a plus. So yes, as you got, (k-l)/k is k/k-l/k. But the expression is 1-(k-l)/k = 1-(k/k-l/k) = 1-k/k+l/k. The post you were replying to brings the fraction inside and resolves the brackets in one step. (As described earlier, it then further simplifies 1-1+l/k = l/k.)

                  1 Reply Last reply
                  0
                  • M myramla

                    >(1 - (K11 - L11)/K11) * 100 > = (1 - (K11 / K11) + (L11 / K11)) * 100 Where did the + came from ? (K11 - L11)/K11 is the same as (K11 / K11 ) - (L11 / K11) Besides, the parentheses signifies that it should be evaluated first. the formula is evaluated to; K11 - L11 then divided by K11, subtract the answer from 1 then multiplied by 100 to represent as a percentage. This is a valid income formula. if L11 = 100, K11 = 200, this will result into a 50% answer.

                    P Offline
                    P Offline
                    phil o
                    wrote on last edited by
                    #11

                    (1 - (K11 - L11)/K11) * 100 = (1 - ((K11/K11) - (L11/K11))) * 100 = (1 - (1 - (L11 / K11))) * 100 = (1 - 1 + (L11 / K11)) * 100 = (L11 / K11) * 100 Did you got it ?

                    1 Reply Last reply
                    0
                    • F fuximus

                      This is what I got from my director/president of IT department of our company, I'm not sure if he wrote it or not. It's a formula in an excel cell:

                      =(1-(K11-L11)/K11)*100

                      i mean seriously, wtf? I've also seen a code/formula than spans a whole line includes several variables which equals to 1 no matter the variables, i pointed it out to the "developer" he laughed his ass off and got embarrassed that was kind of funny.

                      S Offline
                      S Offline
                      StevenFoust
                      wrote on last edited by
                      #12

                      Whoever set up the spreadsheet originally simply plugged in standard accounting formulas without performing any simplification. Gross Profit Margin is defined as the difference between revenue and cost of goods sold, divided by the revenue:

                          GPM = (Revenue - CoGS)/Revenue
                      

                      The equation in the spreadsheet you were looking at was looking at (effectively):

                          (1 - GPM)\*100
                      

                      True, it could have been simplified, but there are (at times) reasons for not performing every possible simplification. In this case, to someone who "thinks" in terms of CoGS, Revenue, Margins, etc. the equation given makes a lot of sense. To a programmer (or a mathmatician) it is not very efficient, but to the accountant it provides self-documenting code. This is especially important in Excel, where you can't add comments to the code (cell equation). It appears that they were trying to calculate the proportion of each dollar of revenue that the company spent as expenses.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups