03-22-2019 12:05 PM
03-22-2019 12:05 PM
I am trying to figure out if a region/section in the column is blank or not. It's in order by region but each region can be listed multiple times, so, for example, SEC36 is on the list 30 times, but only 14 of them have a plan listed. The plan is listed in Column E. I don't need to know which type of plan, I just need to know if they have one or not.
I started with this, and it counts column B, but if it's blank or not.
03-22-2019 02:50 PM
The formula looks correct and should return the count of cells containing "SU036" with non-blank plans.
03-22-2019 04:02 PM
03-22-2019 04:12 PM
03-22-2019 04:14 PM
03-22-2019 04:27 PM
@Armanda406 , how do you clean the plan, just delete the value from the cell(s) or by some other way? If that's the formula which returns "" your COUNTIFS won't consider it as the blank.
03-23-2019 01:15 AM
The criteria2 argument of COUNTIFS is incomplete. There is no value against which E2 could be compared.
A criterion "<>" in any of the IFS functions does carry meaning.
The equivalent condition in SUMPRODUCT, say, would be
= ( value <> "" )
Within an IFS function is suppose it could be presented as
= COUNTIFS( …, …, value, "<>" & "" )
but that reduces to the first form.
03-23-2019 01:51 AM
03-23-2019 03:16 AM
I am trying to copie a formule used in tab sheet 'Sales' to tab sheet 'Total Sales'.
However it doesn't copy the formule but it's just mentioning the tabsheet name + cell number.
Any idea what this could be? @Peter Bartholomew
03-23-2019 03:42 AMSolution
@Peter Bartholomew , IMHO the main question here is what we consider as empty cell. That could be the blank cells (no content at all) only, or blank cells and cells with empty string ("", which we usually use to imitate blank cells). If do small test we will see the difference
Here two yellow cells are with empty string and one cell is blank. Total 6 cells, 2 empty plus 1 blank.
COUNTA() doesn't consider cells with empty strings as blank and count them, same do COUNTIFS(). Just in case, COUNTBLANK() in opposite counts both blank and empty ans blanks. SUMPRODUCT() does correct calculations excluding all cells with empty strings and blank ones. Variant with LEN() is more straightforward and gives less reasons for misinterpretations.
As for @ that's not wildcard, only the character which is more close to the beginning of ASCII table compare to other characters. However, # is even earlier plus any number is always less than any text, thus formula counts only the cell with a1.
Back to initial question I'd use SUMPRODUCT like
03-23-2019 03:47 AM
@Maximus1988 , I guess that's the question for separate conversation, better to start such. Plus clarify a bit what do you copy - formula itself or cell with the formula. And you not only copy it, you paste it - just Paste all cell content, or Paste Special -> Formulas or what.
03-23-2019 03:54 AM
I am not sure whether this relates to @Armanda406's question.
However, you formula will point to the same cells and the sheet name is needed for references between sheets. If there are values on the new sheet which could meaningfully be referenced by the formula, then you simply need to work through the references, removing the sheet name and adjusting the position of the reference if necessary.
03-23-2019 04:07 AM
Thanks for the summary; there is still a certain amount of trial and error with my formula development in this area. I selected and have used ">@" on occasion because it comes before 'A' in the ASCII sequence. Mind you the sort order is not always obvious when it comes to mixes of numbers, letters, non-alphanumeric characters and spaces.
03-25-2019 09:11 AM
03-25-2019 09:46 AM
Do I understand correctly what other words you need number of unique SU minus one? Or that could be the situation when you change from SU1 on SU2 and after that back on SU1 and it will be 2 changes?
03-25-2019 11:08 AM
I think I figured it out, the SU036 changes to SU074, or SU131 and I need to know for each SU the number of plans. I think I figured it out, for now. I copied the SU list and then removed any duplicates, I added to Column G and then using absolute and adding the Cell I needed to reference that contains each Unique SU, it seems to work out and count each SU that is not blank.
03-25-2019 11:14 AM
@Armanda406 Yes, it works. It could be one more step to select unique SU automatically by formula, but if you have more or less static data that's not quite important.