+ Reply to Thread
Results 1 to 13 of 13

Formula to Calculate the Volume of a Log

Hybrid View

  1. #1
    Registered User
    Join Date
    01-04-2014
    Location
    Ljubljana
    MS-Off Ver
    Excel 2003
    Posts
    19

    Formula to Calculate the Volume of a Log

    Hi guys,

    I obviously need some help.

    I insert diameter of the log in cell a1 (lets say 40) and lenght of the log (lets say 400) in cell b1. In cell c1 I want to calculate volume of the log.

    So the formula for the volume is (3.14*a1*b1)/100000.

    But the value of cell a1 is changing, if the value is equal or less then 26 then the formula have to deduct 1 from the a1 cell value, if value is equal 27 but equal or less then 50 deduct 2, if value is equal or greater then 51 deduct 3.

    So when I insert number 40 in cell a1 and insert number 400 in cell b1 I should calculate (3.14*38*400)100000, because from number 40 I have to deduct 2.

    I hope this is understandable,

    Thanks for your help
    Last edited by klofutaric; 02-23-2019 at 04:38 AM. Reason: wrong thread title

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,773

    Re: Formula to Calculate the Volume of a Log

    Here you go:

    =(PI()*(A1-LOOKUP(A1,{0,27,51},{1,2,3}))*B1)/100000
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Formula to Calculate the Volume of a Log

    =pi()*(a1-match(a1,{0,27,51},1))*b1/100000

  4. #4
    Registered User
    Join Date
    01-04-2014
    Location
    Ljubljana
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Formula to Calculate the Volume of a Log

    Sorry, that doesn't work, I get this

    Brez naslova.png

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,773

    Re: Formula to Calculate the Volume of a Log

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,773

    Re: Formula to Calculate the Volume of a Log

    Probably your locale. Try this:

    =(PI()*(A1-LOOKUP(A1;{0,27,51};{1,2,3}))*B1)/100000

    I have replaced commas with semi-colons.

  7. #7
    Registered User
    Join Date
    01-04-2014
    Location
    Ljubljana
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Formula to Calculate the Volume of a Log

    Sorry, another message

    first I get this, change value in {} brackets

    Brez naslova.png

    when i click no this pops up

    Brez naslova1.png

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,773

    Re: Formula to Calculate the Volume of a Log

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,773

    Re: Formula to Calculate the Volume of a Log

    So did it occur to you to try this?

    =(PI()*(A1-LOOKUP(A1;{0;27;51};{1;2;3}))*B1)/100000

  10. #10
    Registered User
    Join Date
    01-04-2014
    Location
    Ljubljana
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Formula to Calculate the Volume of a Log

    Yes I tried to do this, but I didn't change a1 cell to a4, so it didn't work, stupid me

    Thank you very much

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,773

    Re: Formula to Calculate the Volume of a Log

    At last!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  12. #12
    Registered User
    Join Date
    01-04-2014
    Location
    Ljubljana
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Formula to Calculate the Volume of a Log

    Hi guys,

    So the basic formula for calculating volume of the log is (PI*((D/2)^2)*L)/1000000, D=diameter of log, L is lenght of log. My previous formula in my first post was (3.14*D*L)/100000, but is wrong because formula for calculating circle area is pi r(squared)2.

    I tried to change formula to (PI()*(((B4/2)^2)-LOOKUP(B4;{0;27;51};{1;2;3}))*C4)/1000000, but this formula does't substract (1,2,3) from diameter.

    For example result for diameter 60 and lenght 400 is 1,13 m3, but it should be 1,02, because formula should use diameter 57 (60-3=57).

    Sorry for inconvenience,

    Regards, Klo

  13. #13
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Formula to Calculate the Volume of a Log

    So, I *think* you would just modify

    Formula: copy to clipboard
    B4/2

    to

    Formula: copy to clipboard
    (B4-MATCH(B4;{0;27;51}))/2

    with the above change in place you would get 1.016934 for 60x400

    edit: I suspect, in fact, that's not quite correct...i.e. should remove the LOOKUP piece from earlier iteration - would return 1.020703

    Formula: copy to clipboard
    =(PI()*(((($B4-MATCH($B4;{0;27;51}))/2)^2))*$C4)/1000000
    Last edited by XLent; 03-11-2019 at 07:42 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  2. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  3. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  4. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  5. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  6. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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