The Capacity column is not calculating properly. It has worked for years and now, for some reason, something has changed and it is not working properly.
Please show your correction so if it happens again, I can make the change.
Excel 2013
The Capacity column is not calculating properly. It has worked for years and now, for some reason, something has changed and it is not working properly.
Please show your correction so if it happens again, I can make the change.
Excel 2013
Ummm... How can we change anything without seeing something...
Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).
1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.
2. Make sure that your desired solution is also shown (mock up the results manually).
3. Make sure that all confidential information is removed first!!
4. Try to avoid using merged cells. They cause lots of problems!
Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU
Glenn: I'm sorry but I don't understand what you are asking me. I've sent a copy of the actual spreadsheet. The "Capacity"
column of the spreadsheet does not calculate. What more information do you need?
I have scrolled down, but do not see "Go Advanced and then scroll down to Manage Attachments.
I don't understand -- or it is so simple that I feel I am missing something.
The current formula in the "capacity" column (column U) is tank size-blank column (columnV-columnX). Because Excel treats blank cells as if they were the value 0, the formula in column U is correctly return the value from tank size (column V).
If this is not correct, what should the capacity column/column U be doing?
Originally Posted by shg
It is difficult to follow what your problem is without knowing what you expect.
In Col X you have a formula which returns 12177 on row 229 (because you have no values in F229:O229.
In rows 230 to 235, the values in Col G and Col K are causing your OFFSET formula to look at a blank cell.
Should Col F and Col H be blank? Others have a formula! This maybe your issue.
I hope this helps, please let me know!
Regards,
David
If this has been helpful
- Please click on the *Add Reputation button at the bottom left.
Please mark your thread as SOLVED:
- Click Thread Tools above your first post, select "Mark your thread as Solved".
I have attached a larger section of my spreadsheet.
As you can see in the sections above the "Non Working Section" at the bottom
of the Metro Spreadsheet tab, the figures in the "Capacity" column are supposed to calculate the amount the tank can hold based
on on the last inventory reading entered in the Inventory tab. For example, in the 2nd "This Section Works" section at the top
of the Metro Spreadsheet tab, 6091 was entered at 5 pm. The figure is subtracted from the tank size of 17800. 17800 - 6091 =
11709. The figure you see in the "Capacity" column.
Now look at the "Non Working Section" at the bottom of the Metro Spreadsheet tab. 2140 is the 5 pm figure found in the 0274/1970
row. The 5 pm figure should be subtracted from the tank size. 10450 - 2140 = 8310 should be the capacity reading but the cell
shows 10450, the tank size. Why are the cells in this section not calculating properly?
First observation: I was wrong earlier when I said that column X was empty. Column X only looks empty because you have white font on white background, and you have the "do not show zero values" option checked in options. I find that spreadsheets are more difficult to debug when I hide pertinent data. First thing I would suggest is to make sure that all pertinent data is readily visible to you, the programmer, so that you can see what is going on.
By making column X visible and making 0 values visible throughout the worksheet, I can see that X324 is returning 0, not 2140. Column X contains an OFFSET() function with some counting function. The logic in the counting functions inside of this offset function appears to be causing the OFFSET() function in X324 to return the 0 value in J324. (If you are unfamiliar with Excel's debugging tools, this can be seen using the Evaluate Formula tool on the Formula tab: https://support.office.com/en-us/art...6-A70AA409B8A7 ).
It appears to me that something is wrong with your logic here. In all the previous sections, the nonzero values in E:O of a given a row are to the left, and all the zero values are to the right. In the non-working section, this is no longer true. The logic in the OFFSET() function seems to be expecting that all zero values are in the leftmost columns and any zero values are in the rightmost columns.
It seems to me that something is different about how columns E:O are populated in the non-working rows, or the OFFSET() logic is incorrect for these rows. I cannot tell what the overall logic for these rows should be, so I am not sure what correction to suggest. I would suggest reviewing the formulas that populate E:O and make sure they are correct. If they are correct, then you need something different in your OFFSET() function.
Can you further clarify what should be going on here?
As I suggested in Post #5 - I think some of your problem is due to Col F and Col H having blanks whereas everywhere else, there is a formula.
I agree with the other comments from MrShorty. It is quite a difficult worksheet to follow as presented.
I hope this helps, please let me know!
Regards,
David
If this has been helpful
- Please click on the *Add Reputation button at the bottom left.
Please mark your thread as SOLVED:
- Click Thread Tools above your first post, select "Mark your thread as Solved".
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks