+ Reply to Thread
Results 1 to 18 of 18

Calculate the volume based on the number of the tank

  1. #1
    Registered User
    Join Date
    09-24-2011
    Location
    Yemen
    MS-Off Ver
    365
    Posts
    77

    Calculate the volume based on the number of the tank

    I need a formula to calculate the volume in liters based on the number of the tank number in another sheet

    The volume calculated by looking for the value in column(cm) at the tank sheet and returning the value in another column (liters), and then also add/sum the millimeters value in another column (liters to the total of liters as total liters

    Please find the attached example
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Calculate the volume based on the number of the tank

    Should the centimetres be 302 not 320 ?

    And place the data in two columns (on each sheet) not spread over 12.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Calculate the volume based on the number of the tank

    I'm not following your example very well, unless there is a typo in D12 and D12 should be 302. If D12 should be 302, then it appears that you want to lookup the volume that corresponds to tank number, cm number, and mm number, and add the two volumes together to get the final result.

    My first thought in this -- are you required to store the data for each tank like you are currently doing it -- a separate tab for each tank and the cm-volume and mm-volume tables spread out over multiple columns? IMO, this lookup function will be a lot easier if you can combine the data for all three tanks into a single table, but I want to know if that would be allowed or not before proceeding.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    09-24-2011
    Location
    Yemen
    MS-Off Ver
    365
    Posts
    77

    Re: Calculate the volume based on the number of the tank

    Quote Originally Posted by JohnTopley View Post
    Should the centimetres be 302 not 320 ?

    And place the data in two columns (on each sheet) not spread over 12.
    SORRY, Yes its 302 ,
    I have to spread over 12 or more , i have more than 40 tanks in this layout
    Thanks for your reply

  5. #5
    Registered User
    Join Date
    09-24-2011
    Location
    Yemen
    MS-Off Ver
    365
    Posts
    77

    Re: Calculate the volume based on the number of the tank

    function SUMPRODUCT works fine for this layout .
    i need to know how to call the tank number from multiple tanks/sheets .
    Last edited by meonly123; 01-29-2023 at 02:45 PM.

  6. #6
    Registered User
    Join Date
    09-24-2011
    Location
    Yemen
    MS-Off Ver
    365
    Posts
    77

    Re: Calculate the volume based on the number of the tank

    Quote Originally Posted by MrShorty View Post
    I'm not following your example very well, unless there is a typo in D12 and D12 should be 302. If D12 should be 302, then it appears that you want to lookup the volume that corresponds to tank number, cm number, and mm number, and add the two volumes together to get the final result.

    My first thought in this -- are you required to store the data for each tank like you are currently doing it -- a separate tab for each tank and the cm-volume and mm-volume tables spread out over multiple columns? IMO, this lookup function will be a lot easier if you can combine the data for all three tanks into a single table, but I want to know if that would be allowed or not before proceeding.
    SORRY , Yes its 302 ,

    I have to spread over in this layout , function SUMPRODUCT works fine for this layout .
    i need to know how to call the tank number from multiple tanks/sheets .
    Thanks for your reply

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Calculate the volume based on the number of the tank

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    IMHO you would be better adopting the layout in columns O:Q in "Tank 1" with all tanks on one sheet
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-24-2011
    Location
    Yemen
    MS-Off Ver
    365
    Posts
    77

    Re: Calculate the volume based on the number of the tank

    Quote Originally Posted by JohnTopley View Post
    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    IMHO you would be better adopting the layout in columns O:Q in "Tank 1" with all tanks on one sheet
    JohnTopley YOU ARE THE MAN
    thats what i mean , many thanks for your time and effort

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Calculate the volume based on the number of the tank

    Example of suggested layout


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-24-2011
    Location
    Yemen
    MS-Off Ver
    365
    Posts
    77

    Re: Calculate the volume based on the number of the tank

    Quote Originally Posted by JohnTopley View Post
    Example of suggested layout


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    OKAY but how about the mm(millimeters)!
    PLZ find attached the original tank table layout, because now I have trouble with adding multiple tanks of the same layout .

    your advice or suggestions will be much appreciated
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Calculate the volume based on the number of the tank

    With your last post (volumes much greater than sample post - i.e 1500 rows per tank) then l I would still organise as I suggested but if that is not to you liking then use the original SUMPRODUCT formula. But be aware that using INDIRECT can result in slow processing.

    For millimetres you could create a seperate sheet with data per tank: if data is common to all tanks you could a table to the "cm" sheet.
    Last edited by JohnTopley; 01-30-2023 at 02:22 PM.

  12. #12
    Registered User
    Join Date
    09-24-2011
    Location
    Yemen
    MS-Off Ver
    365
    Posts
    77

    Re: Calculate the volume based on the number of the tank

    Quote Originally Posted by JohnTopley View Post
    With your last post (volumes much greater than sample post - i.e 1500 rows per tank) then l I would still organise as I suggested but if that is not to you liking then use the original SUMPRODUCT formula. But be aware that using INDIRECT can result in slow processing.

    For millimetres you could create a seperate sheet with data per tank: if data is common to all tanks you could a table to the "cm" sheet.
    Thank you for your reply .
    is there any way or formula to change the layout into the suggested layout (two-column only ) instead of doing it manually .
    Thanks for your help

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Calculate the volume based on the number of the tank

    Please Login or Register  to view this content.
    Reformats the "Cm" data

    "Tank !!B" ia copy of "Tank !!A": i was unable to change any data as the sheet is password-protected.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    09-24-2011
    Location
    Yemen
    MS-Off Ver
    365
    Posts
    77

    Re: Calculate the volume based on the number of the tank

    Quote Originally Posted by JohnTopley View Post
    Please Login or Register  to view this content.
    Reformats the "Cm" data

    "Tank !!B" ia copy of "Tank !!A": i was unable to change any data as the sheet is password-protected.
    THATS GREAT ...many thanks for your effort and help
    what I understand is that I should put all tanks in one single sheet ! Right !!!
    and I will change the range of the cells in the vb code based on the tank format.

    but one last question how about the mm ! should i put all tanks mm in one single sheet in the same way in cm(summary page)?

  15. #15
    Registered User
    Join Date
    09-24-2011
    Location
    Yemen
    MS-Off Ver
    365
    Posts
    77

    Re: Calculate the volume based on the number of the tank

    Quote Originally Posted by meonly123 View Post
    THATS GREAT ...many thanks for your effort and help
    what I understand is that I should put all tanks in one single sheet ! Right !!!
    and I will change the range of the cells in the vb code based on the tank format.

    but one last question how about the mm ! should i put all tanks mm in one single sheet in the same way in cm(summary page)?
    mm data is NOT common to all tanks

  16. #16
    Registered User
    Join Date
    09-24-2011
    Location
    Yemen
    MS-Off Ver
    365
    Posts
    77

    Re: Calculate the volume based on the number of the tank

    your assistance on the matter will be greatly appreciated

  17. #17
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Calculate the volume based on the number of the tank

    Please Login or Register  to view this content.

    Macros are "REformat_CM" and "Reformat_MM" with output in Shhts "CM" and "MM"
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    09-24-2011
    Location
    Yemen
    MS-Off Ver
    365
    Posts
    77

    Re: Calculate the volume based on the number of the tank

    Quote Originally Posted by JohnTopley View Post
    Please Login or Register  to view this content.

    Macros are "REformat_CM" and "Reformat_MM" with output in Shhts "CM" and "MM"
    that's wonderful
    I appreciate your help so much.

+ 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. Tank Calibration table, Formula to find volume from height
    By endrit01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2019, 12:16 PM
  2. Replies: 2
    Last Post: 05-23-2017, 02:16 AM
  3. Calculating tank volume given height of fluid
    By mathayo in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-30-2016, 06:30 AM
  4. Calculate Volume Per Day Based on How Many Days of Year Have Occurred
    By sulax in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-27-2014, 10:55 AM
  5. [SOLVED] calculate weekly volume based on week number
    By karl8695 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2014, 06:23 AM
  6. How to measure fuel in cylindrical tank,Base tank and rectangular tank
    By koolboy65 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-17-2012, 02:31 AM
  7. [SOLVED] Volume in horizontal round tank...
    By Richard Larson in forum Excel General
    Replies: 1
    Last Post: 10-11-2005, 03:05 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