Adjust Dynamic Range To Ignore Formulas In Blank Cells?
May 19, 2014
Attached is a spreadsheet I am working on that has a series of graphs with defined dynamic ranges. I am having 2 separate issues on 2 different tabs.
1) Ranges named AirRecBra4 (and Bra10); AirComBra4 (and Bra10); AirRemBra4 (and Bra10) are not pulling in data from the correct data points. Instead of using the last 26 data point, they are currently beginning at the top of the column (currently cells 11 to 36 is their respective columns). The formulas are copy and pasted from working offset ranges in the same tab but are reading differently.
2) On the last 6 tabs beginning with Stn Backlog, I want to have defined formulas beginning in cell B119 and continuing downward to at least F200. However, when I add the formulas, the offset reads the formulas as being data and adjusts for that. I do not know how to adjust the dynamic range to ignore formulas in blank cells.
Global Demand-Capacity Management_working (version 3).xlsm
I am having the same problem as this thread Dynamic Ranges with blank cells.
I've recently been pointed in the direction of dynamic ranges (named ranges that use OFFSET and COUNTA to expand to cover the whole of a list, even if the number of rows used is frequently changed).
They seem to have a big drawback, in that the range will not go to the bottom of the list if the list has blank cells in (because the COUNTA for the column of interest does not equal the number of rows in the list).
I have been to the link posted in that thread about advanced dynamic named ranges but inserting a row with numbers in it and then hiding it is not suitable for me as i deal with other peoples spreadsheets so need to always be working with the Active Sheet.
I've normally just dynamically selected a range using the xldown feature but because this row contains formula it goes always down to the bottom of the formula instead of the last cell which isn't blank.
How would i go about generating this dynamic range that stops at the first cell that contains no value (but has a formula)? Perhaps a do while loop which looped down until it hit the first blank and then assigned the cells it had looped through as the range?
I am having 2 problems with dynamic named ranges. On one hand, I am getting a LOT of duplicates in some ranges and a lack of entries in those ranges that have too many blanks. Here is a sample of the dynamic named range in the first column:
This first range is called "NamedRange_1" =OFFSET(Data!$A$2,0,0, COUNTA(Data!$A:$A)-1,1)
how to eliminate both the duplicates and the blanks?
I have a row of cells, say, A1 to G1. I wish to sum the values in cells, say, A1, C1, F1 and G1 only. The chosen cells can have values 0, >0 or Blank. How do I sum the values and ignore the blank cell(s) without getting #VALUE!? Filling the blank cells with "0" is not an option.
(Any blank cells may have a value added at a later date).
Edit: I could use multiple 'IF' statements, but this is cumbersome. There must be a simpler way.
The first tab has raw data - The second is my summary. TAB1 -includes column A = name range column B = Evaluation Result 1 % column C = Evaluation Result 2 % column D = Evaluation Result 3 % column E = Evaluation Result 4 % TAB 2 on...The remainder of the tabs are summary for each name in column A of Tab1. each summary tab includes A3 = name A7 = Evaluation Results 1 A8 = Evaluation Results 2 A9 = Evaluation Results 3 A10 = Evaluation Results 4
The evaluation results can include any % from 0-100 and can also be blank. I need to count the 0 but ignore the blanks so for example on Evaluation Result 1, Im using
So I can find the name in the list of names and the % score for the evaluation - however I don't know how to ignore the blank cells. If the cells are blank I would like to see "-". if they are 0% I would like to see the 0%.
In cell C1 I hace A1-B1 and in cell DI want to display the status of the cell C1 like this : =IF(C10 ; "NOT OK" ; "OK") This means that when the value of the cell C1 is different then 0 cell D1 will display "NOT OK" and if the value of cell c1 is 0 then D1 will display "OK".
The PROBLEM: Because the cell C1 contains a formula (A1-B1) the D1 cell will display "NOT OK" even if the cell C1 doesn't show any number.
I have a spreadsheet for which I have to set up a formula to get the minimum value from a range of cells, but that range can include blank cells, errors (#DIV/0) and zeros, all of which I want to be ignored. I can work out how to ignore EITHER the zeros
or the error cells
How to exclude both. If I try to combine both of these exclusion criteria it doesn't work and I end up with the answer #DIV/0, which is one of the values I want it to ignore.
I have tried to set up a list of cells to highlight in red any numerical values which are greater than 0 using conditional formatting. This works fine, except that all blank cells are also highlighted in red. Formula is currently: cell value is greater than 0. What do I need to do to ignore the empty cells?
I'd like to give a conditional format to a range of cells so that only one cell in the range has a gray background. The condition must include three criteria: 1) The cell cannot be blank, AND 2) The cell's value must be the minimum in the range, AND 3) The cell's value must not equal any value preceding it in the range.
My own attempt looks like this for cell J8 in the range C8:AF8: =AND(NOT(ISBLANK(J8)),J8=MIN($C8:$AF8),J8$C8:I8)
Problem: This condition works great for all values entered EXCEPT ZERO. When J8 is the first zero in the range, if it is preceded by a blank cell anywhere else in the range, it fails the third criterion (J8$C8:I8) because Excel treats the blank cell as though it's a zero. Result: no gray background.
I have the following formula which counts number of days between dates in two adjacent cells excluding holidays
The $AA$4:$AA$14 refers tote range where the excluded holiday dates are stored.
I have included the -1 at the end as it over counts by one day every time. i.e. if the same date is in both cells it counts 1
However if no date is in both fields it count -1 (minus one)
If a date is just in one field it counts a very high number, example below.
20/06/2014 08/07/2014 12
is there a better formula to use for this? How do I get the result to show ZERO when both cells are empty? can I get the result to show number of days to present date where there is only a date in first column?
I can't modify my formula to leave blank cells blank when dragging it down, Also, I've got two formulas that i need to combine. Please view the comments I've put in cells E4, F2,F3,H2 and I2 to understand clearly what am seeking. See the attached worksheet.
I have a worksheet (Data) that lists when pupils are in for Nursery sessions during the week. If they are in they have a 3 (hours) by their name in the relevant columns.
In the AM worksheet I now need to pull through a "register" so under each daily heading I need to pull through everyone that has a 3 next to their name under Monday AM / Tuesday AM / Wednesday AM etc. from the Data sheet. However, I don't want it to copy any blank cells. I then need to do the same for the PM sheet.
I've managed to piece together a VBA code that works perfectly for my needs. The problem is that the sheet it is on gets adjusted a lot, and I only need the code to run when certain cells are changed (rather than each time any cell is changed).
Here is the code I have now:
Put simply, I need this code to run only when a cell in Range "TValueDeal" is changed. Is making this adjustment as simple as adding a couple lines of code, or is there a better way to write the entire thing?
I have a named dynamic range with the source =OFFSET(Data!$J$2,0,0,COUNTA(Data!$J:$J),1) Thia is set up as the data validation list in a cell with a drop down list It is set so that once the drop down is activated there is the option of selecting a blank from the bottom of the list so that if you activate the cell in error you don't have to delete any entry you are forced to make, you can select the blank and leave the cell blank. This works fine until the list gets quite long at which time there is no option of a blank.I don't know the number in the list where this starts but certainly a list over 100 has this problem. On shorter lists the blank is selectable. The selection is correct as when you check the named list it shows the correct range. I would welcome any views on solving this if it can be resolved.
I can't figure out how to make this formula work because I need to use cell AG46 and it contains an IF formula that leaves the cell blank if the sum = 0. I keep getting the #VALUE! error. How do you create a formula using a cell that has an IF formula that could leave the cell blank?
Basically this is what I need in cell I12: =sum(a12)-(ag46*8)
I have the column E in excel labeled 'Notes' in tab 1 adding at the bottom of the column using(=COUNTA(E2:E29), so if the cell is empty it doesnt add it up in the totals. In tab two i have that same column linked via formula. In tab 2 its counting the empty cells because even though they appear blank they have a formulas in them how do i get it to not count those cells. here is the formula im using in column E tab 2.
i am wondering if there is a way that i can have these cells that depend on formulas to remain blank, until i have my data entered, or that they may remain blank, but give me running totals of only the cells i have inputted.
Is there a way to make a chart adjust automatically when you add to the source data? I'm trying to use a named range in order to power a chart (something like chart_data=offset(a1,,, counta(a:a),counta(1:1)); the range is working fine). When I put "chart_data" into the source field for the chart, it seems to work fine; it picks up the right range... But when I later add more data, the chart source data field seems to have converted my named range into a hard-coded range, absolute range. So the dynamical named range updates, but the chart doesn't and I don't see the new data. Am I doing something wrong that I need to tweak? Does what I'm trying to do just not work? Is there another way to make the chart pick up the new data without adjusting the range?