# Count Column W/blanks & Values Based On Specific Date

Nov 25, 2009
I am in desperate need of a function that will count a column of data where there are blanks and values based on a certain date that will also capture any data that is added after refreshing the table from Access. I have tried several functions but this is what I have: =(ROWS('TouchBack Detail'!$Q:$Q)*COLUMNS('TouchBack Detail'!$Q:$Q))+(COUNTIFS('TouchBack Detail'!$B:$B,'Nov TouchBack Summary'!B$1)). The result should be 3 but it’s including all other cells in the column that are not and should not be included in the refreshed table’s data (Table_TouchBack.accdb). I have attached the spreadsheet for review. The function is in cell B27 highlighted in yellow.

View 3 Replies
ADVERTISEMENT
Mar 14, 2014

I'm running into an issue trying to calculate unique values in a Data column based on a few variables in other columns.

My current formula in Summary tab D4:D19 is

{=SUM(IF(FREQUENCY(IF(Data!$I$3:$I$66<$E$1,IF(Data!$A$3:$A$66=$H$1,

IF(Data!$C$3:$C$66=A4,ROW(Data!$I$3:$I$66)))),ROW(Data!$I$3:$I$66)),1))

+

SUM(IF(FREQUENCY(IF(Data!$I$3:$I$66<$E$1,IF(Data!$A$3:$A$66=$I$1,

IF(Data!$C$3:$C$66=A4,ROW(Data!$I$3:$I$66)))),ROW(Data!$I$3:$I$66)),1))}

This is currently counting the number of times a date value (data column I) appears for that name (A4:A19) in the data when meeting all of the conditions. I need it to instead count the number of times a unique date appears for that name with the additional conditions met (which all appear to work fine).

The results in the pink highlighted cells (Summary column D) should be:

Names starting with A - 3

All others - 2

I've left some other columns in the data with X's so that I can easily convert this back to my working spreadsheet.

View 2 Replies
View Related
Apr 24, 2009

I think I am working all around this in Excel 2003 and feel like I am in the neighborhood, but can't seem to quite get there. On sheet1 I have 2 columns of 100s of rows. All of the cells in column A will be filled in with a date as time goes by (1-May-09 for example). Several of them may be 1-May-09 as a matter of fact. In column B, some of the cells will have a number in them and some of them will be empty. On sheet2, I want to construct a formula that returns a count of cells in column B that have a number in them based on a specific date in column A. For example:

AB

1-May

1-May777

1-May

1-May

1-May

2-May999

3-May

2-May

1-May

2-May111

1-May

If I could get the formula right, it would return an answer of 1 for 1-May in the example, because only 1 of the 1-May entries in column A has a number in the adjacent cell in column B. A formula for 2-May would return an answer of 2 since only 2 of the 2-May entries in column A have numbers in the adjacent cell in column B, and so on for the month. If I understand things right, there are too many arguments for COUNTIF. It seems that SUMPRODUCT should work, but I can't make it so.

View 2 Replies
View Related
May 15, 2014

I have a column that repeats it self and I want to perform a count on Column B, based on the values in Column A.

Example attached : Book2.xlsxâ€Ž

View 2 Replies
View Related
Sep 14, 2009

I have the attached a workbook (& the code) which merges the worksheets from 7 different workbooks together into a 'Raw data' worksheet in my master workbook. It is driven off a parameters table which allows you to select which workbooks/worksheets you want to include in the merge. - The code works fine however when it is copying the data from each worksheets it is just copying all the data as a 'block' copy where I need it do do it row by row becuase I dont want to copy the row if colum C in each row contains no data, ie. it is blank.

So in my code I need another loop which will: Copy data from column A - E for each row if column C is not blank. Paste into Column B - F in Raw Data worksheet (as column A contains the source filename) Loop until it reaches no more data. I adeeally just want to copy the specific range as above, not the whole row but either will do. This is my code, refer to attachment too which includes master workbook and an data entry workbook where the data comes from.

Sub OpenWorkbooks()

Dim Book_Name As range ' List of available books

Dim Sheet_Name As range ' List of available sheets

Dim dLastRow As Long

Dim oLastRow As Long

Dim sLastRow As Long

Dim DestinationSheet As Worksheet

Dim SourceSheet As Worksheet

Dim WorkBookList As range

Dim WorkSheetList As range

Dim WorkbookPath As String

With Application

. ScreenUpdating = False

.DisplayAlerts = False

.EnableEvents = False

End With

'set source and destination sheet

Set DestinationSheet = Sheets("Raw Data")

Set SourceSheet = Sheets("Parameters")........................

View 5 Replies
View Related
Mar 20, 2006

Is there a function to count blanks in a filtered column? That is, if I filter a column to show the rows that are blank, can I use the subtotal function (or some other) to count the number of blanks?

View 14 Replies
View Related
Jul 1, 2009

I am using Excel 2007, and I'm stuck with this problem.

View 4 Replies
View Related
Jan 17, 2009

I have a spreadsheet containing 10,000 + entries.

Each Entry is Dated within Column D2:D10786 in this format - 1-Nov-08 (example).

Lets say i have a cell on another sheet Cell A1 and in this Cell i want it to Count how many Cells contain the dates from Nov-08 in my Date column..

View 9 Replies
View Related
Dec 5, 2013

Below the two columns represent Column A (date and time) and Column B is temperature.

How can I take the mean of all temperature values for May 1, then take the mean of all temperature values for May 2, etc.?

5/1/2013 0:0012.4

5/1/2013 1:0012.4

5/1/2013 2:0012.5

5/1/2013 3:0012.5

5/1/2013 4:0012.5

5/1/2013 5:0012.4

5/1/2013 6:0012.4

View 2 Replies
View Related
Aug 27, 2010

I was wondering if there was an array formula or some VBA code which can transpose/repeat values based on a count. Below is an example of what I mean:

Name Count Output Tod 4 Tod Bill 3 Tod Sue 5 Tod

Tod

Bill

Bill

Bill

Sue

Sue

Sue

Sue

Sue

View 6 Replies
View Related
Mar 18, 2013

I've got two columns, one with policy numbers, the other with error codes.

A policy could be in the list more than once, so I'm counting the number of unique policy numbers with the function

=SUM(IF(FREQUENCY(A10:F10000,A10:A10000)>0,1))

I want to count the number of errors that are NOT code 00 or code 21. Because the error codes are saved as text, I'm counting the number of errors with

=SUMPRODUCT((B10:B10000"21")*(B10:B10000"00")*(B10:B10000""))

The problem is that since a policy number could be listed twice, when I count the errors, I might be counting the same policy as an error twice. This means that I could feasibly end up with more errors than I have unique policies, which doesn't work.

What I'd like to do is only count the number of errors that have unique policy numbers. That is, I only want to count an error the first time it is in the list, based off it's policy number. Is that possible?

Here's my sample data: [URL]

View 9 Replies
View Related
Jun 25, 2014

How I can create a simple formula to count unique values/text within a range of cells that contain duplicates, blanks and errors?

For e.g., in Column A (row 1 - 10):

Proj-001

Proj-001

Proj-002

Proj-004

#N/A

#N/A

Proj-007

Proj-002

View 3 Replies
View Related
Jan 30, 2014

I need to be able to count all the blanks in columns other than A but only until the last used cell in column A. I am using a formula right now that counts the blanks in column A until the last used cell but I don't know how to apply the range of column A to other columns like B and C. Here is an example of what I hope to accomplish:

Formula used in A1 that I need applied to other columns but with the range of column A

="Total Blanks: "&COUNTIF(INDEX(A2:A8,MATCH(TRUE,A2:A8<>"",0)):INDEX(A2:A8,MATCH(2,1/(A2:A8<>""))),"")

Here is an example of what B1 and C1, with the formula, would look like if it counted blanks but with the range of column A

Total Blanks: 3

Total Blanks: 6

Total Blanks: 2

[Code].....

View 2 Replies
View Related
Feb 27, 2013

I have a spreadsheet with two columns - one with names, the other with values. In some cases, the values column alongside a name is blank. Is there a formula-driven method (not a pivot table) that could produce a separate list of only the names that have a value in the value column? The formula needs to be dynamic, not produced via a filter.

View 7 Replies
View Related
Mar 5, 2014

I am able to quite easily count the number of specific values in a cell after the table has been filtered. However, the problem I have run into is that some times the data needs to be placed into the spreadsheet twice (or to be more specific the same subject is associated with several unique data points).

What I need: some way to count the instance of some give value in column D only once based on the presence of a duplicate (unique) identifier in column C. However, when I filter the entire database, it must count *only* the filtered cells and not the hidden cells as well.

Picture:

Column C Column D

111111 M

111111 M

111111 M

[Code]....

Currently calculates: M=9, F=2

Right now it incorrectly states there are 9 "M" from column D when it really should be 5 since 3 are duplicate values. My main difficulty is making sure this continues to work after I filter the entire sheet (say column ZZ) and have a bunch of hidden cells.

Equation currently using to count only filtered values (in this case "males" and "females"):

="M = " & SUMPRODUCT(SUBTOTAL(3,OFFSET(D3:D13,ROW(D3:D13)-MIN(ROW(D3:D13)),,1))*(D3:D13="M"))

View 9 Replies
View Related
Jan 20, 2014

I need a way to find a value in a column which has one or more corresponding values in an adjacent column. Then take all of the corresponding values found and count all occurrences of the found values in another column. But I only want to count the entries if an adjacent column is not blank.

Not the easiest thing to describe. Starting to wonder if I need to think in reverse. I hope the attached example makes more sense.

Book1.xlsx

View 2 Replies
View Related
Sep 13, 2006

I have an array that I'm using - and it works perfectly: =SUM(If((FREQUENCY(If(LEN(B10:B100)>0,MATCH(B10:B100,B10:B100,0),""),If(LEN(B10:B100)>0,MATCH(B10:B100,B10:B100,0),""))>0),1))

Now, what I would like to do, is see how many of these unique numbers relate to another number in column D

See attachment.

View 4 Replies
View Related
Jul 8, 2014

I have 6 worksheets in my file. In sheets 1-5, column A2:A26 list people's names. Some people's names appears on more than one sheet. Not all cells are populated with a value.

ex.

SHEET1

COLUMNA

Bill

[Code]....

My attempt was... =INDEX('Week1:Week5-!$A$2:$A$26,MATCH(0,COUNTIF($A$1:A1,"Week1:Week5"!$A$2:$A$26),0))

where the sheets were Week1-Week5 and the values on each sheet was A2:A26. But I think there's an issue with Excel being able to 3D reference for these types of functions.

View 3 Replies
View Related
Aug 18, 2011

Having a large spreadsheet with Columns A to F filled with data.

I'm trying to create a formula that's count the unique value "Order no." (Coloumn F) but only the ones between certain Departments Column(H) a certain "Error type" in Column(J).

View 8 Replies
View Related
Feb 19, 2010

I have a table in a sheet and I want a formula that will count the unique records. The simplified database is as follows (in a table):

View 6 Replies
View Related
Oct 31, 2011

I have data in the following type

A Criteria B

A Criteria C Criteria A

C Criteria C

D Criteria 1

2 Criteria 3

Criteria 2

3 Criteria

I need a formula that will count the number of unique values in column A that have "Criteria" in column B. In this case the desired output would be 5 (A, C, D, 2, and 3), a blank cell in column A does not need to be counted.

View 9 Replies
View Related
Dec 3, 2007

I need to count the amount of Unique codes in column A BUT ONLY if they are still OPEN status. Hopefully the attached example will be explaination enough (I want to automate the RED figure...

View 3 Replies
View Related
Jan 12, 2014

I am trying to create a calculator which will show start date and end date based on the specific date provided.

EX: column A has January 1, 2013, column B has Wednesday, Column C should have a start date which supposed to be 4 days ago (December 28).

View 6 Replies
View Related
Sep 22, 2013

How does one count the number of x and y values (occurring in same row) in this array?

Time1 x a b c d

Time2 b c x y a

Time3 x a y d b

Time4 a b c d e

Time5 y d a x d

Time6 c y a d b

Note all of the variables above are positive numbers.

View 7 Replies
View Related
Sep 11, 2012

I would like to write a macro that would count observations from a database extract based on specific conditions and generate a report.

My database extract looks like this :

Client name

Info1

Info2

Info3

Bob

aaa

aaa

aaa

[Code] ....

I would like to have an efficient and simple VBA code to count the observations. Something that would store the result of query like those:

# 'client name' = Bob : 2

# 'client name' = Bob AND info1 = aaa : 1

# Info3 = bbb : 2

# 'client name' = Bob and Info1 = aaa OR Info1 = bbb : 2

I am aware of DCOUNT function, but I am not too sure how to translate it in VBA. I also think that using autofilter and counting the visible rows may be subject to bugs.

View 9 Replies
View Related
Jan 3, 2013

I'm trying to create a formula that tells me the following:

If the item is marked as closed (vs. active), then how many renewals/terminations replacements/etc are there? These are two difference columns in a worksheet.

View 2 Replies
View Related
Apr 9, 2009

How would you be able to count all the used cells in a specific column?

I know the following would count all used cells in a worksheet but what about a specific column?

View 7 Replies
View Related
Dec 28, 2013

I have a yearly running log (attached). At the bottom in cell [B88] I would like to develop a formula that gives me the number of times I ran in that specific month. Dates are in Column A and running distances are in Column B. If a distance is zero, I don't want to count it. I have attempted to solve this using the =COUNTIFS formula, but I am not able to structure it properly. Maybe =COUNTIFS is not what I should be using.

View 3 Replies
View Related
Feb 20, 2014

I am, and have been using several sum- and count-ifs formulas for a time, but when the new year rolled around, decided to improve some of the sheet.

That all being said, the issue started after this. A specific set of my count and sum if functions started returning error values.

I analysed them, they seemed fine, and then selected them and hit enter. Problem over in that cell, as suddenly the correct value is returned.

But that's just it, I know the formulas are correct and working, as, if I select and hit enter on them individually, they return the right value. However, every time I close the sheet and re-open, all the values are showing error again.

I am perplexed. Did I inadvertently change a setting somewhere when I rebuilt the worksheet that is preventing the formulas from resolving correctly? As, like I said before, the formulas are fine, the data they are resolving, is fine. Just does not seem to calculate when I open the sheet.

View 2 Replies
View Related
Aug 14, 2014

I have a list of ID# (Col A) and dates (Col B). The ID # of reference is Col (F) and today's date (Col G). I need to count how many future dates there are in the list (Col B) that are unique and in the future from today's date.

I'm still fairly new to all these formulas and functions which is why I'm not attempting this in VBA.

I've attached an example work book and I would like the result in H2.

Example Workbook.xlsxâ€Ž

View 5 Replies
View Related