# Counting Some Blank Cells And Ignoring Others In A Range.

Sep 5, 2009
Using formula rather than VB, I would like to calculate the number of blank cells that appear in a column BEFORE the first active cell but exclude any blank cells that appear after the first active cell. To elaborate, I have sheets that contain the days of each month and I need to exclude for other calculation purposes, the number of days (cells) where no entry of data has been input at the beginning of a month, NOT after the first data entry. ie. September has 30 days.

The first data entry is the 10th and there are no entries (thus far) after the 10th, the result that I seek, will be 20 (although only one cell has data), being the days left in the month AFTER the first entry. I have looked at COUNT functions but cannot find an solution. Perhaps it's not possible using basic formula?

View 4 Replies
ADVERTISEMENT
Aug 20, 2009

I have a range of cells (B6:M6) and I want to count how many have data. My problem is that all of the cells reference cells on another worksheet. Every cell starts out like =Bethlehem!B6. I want to ignore cells that have a reference in it when I count. I know how to do it if you want to ignore these cells as follows: =countif(b6:m6,"<> 0"). Those cell references return a 0 if they have no data in them. However, a user might actually enter a 0 in the referenced cell and I need to count that one. The above formula would exclude it.

View 4 Replies
View Related
May 29, 2013

I have the following table

Team>

Team A

Team A

[Code].....

I need to fill the following table in another sheet counting the amount of Blank cell there are according to Month, Team and if the name row is filled. I have tried Sumifs, sumproduct,countblank typing them in as arrays but don't seem to be getting anywhere

April

May

Team A

6

1

Team B

11

1

View 2 Replies
View Related
Aug 10, 2009

I've got four columns of data. The first column contains pricing for a bunch of products from our company. The other three columns contain pricing for three other competitors. So for example:

Product | Our Price | Comp1 Price | Comp2 Price | Comp3 Price

Gloves | $4.59 | $5.00 |$6.00 | $3.56

Hats | $5.00 | | | $4.59

In column G right after Comp3 Price I have an IF statement that says if Comp1 Price is less than Comp2 Price, Comp3 Price, and Our Price, to print "Comp3" in that cell. If it is not less than the comparable data, then check Comp2 Price then Comp3 price in the same fashion. If Comp1, Comp2, or Comp3 is not less than Our Price then print "My Company Name." This will allow me to see who has the lowest price for that product and also tell me if that lowest price is lower than our price.

My problem is that I can't get it to work out so Excel ignores blank cells. So for example, Comp3 has the lowest price amongst our competitors for hats and is also lower than ours. But when I check for Comp3 price being lower than Comp1 and Comp2, it comes back as negative because Excel sees those cells as zeroes even though they're blank. My formula is:

=IF(AND(C2<D2,C2<E2,C2<B2),"COMP1",IF(AND(D2<E2,D2<C2,D2<B2),"COMP2",IF(AND(E2<C2,E2<D2,E2<B2),"COMP 3","MYCOMPANY")))

This would do exactly what I need Excel to do if it would ignore the blank cells. The problem is that Comp3 has pricing for hats because they offer hats, but comp1 and Comp2 don't offer hats at all, so naturally Comp3 has the lowest price; however, according to Excel Comp1 and Comp2 have the lowest price because the cells are blank and counted as zeroes.

So, does anyone know how to work this out so Comp3 will be counted as the lowest price for hats, ignoring the blank cells of Comp1 and Comp2?

View 10 Replies
View Related
Feb 5, 2010

I am trying to return the criteria MET, NOT MET & EXCEEDS. This works when each cell contains a number, but when one is blank the formula below returns "EXCEEDS" I'm guessing this is because is sees a blank as zero.

=IF(BN102<$BJ102,"NOT MET",IF(BN102>$BJ102,"EXCEEDS",IF(BN102=$BJ102,"MET")))

I've tried using this alternative but it still returns the same.

=IF(BO102<$BJ102,"NOT MET",IF(BO102>$BJ102,"EXCEEDS",IF(BO102=$BJ102,"MET",IF(ISBLANK(B102)," ",""))))

Basically I need to know how to make excel ignore the blank cell and not see it as zero thus returning "EXCEEDS". Although the cell values are integers they are derived from another cell using the following formula, I'm not sure if this makes any difference

=IF(ISERROR(VLOOKUP(BO11,$BH$63:$BI$87,2,FALSE)),"",(VLOOKUP(BO11,$BH$63:$BI$87,2,FALSE)))

View 3 Replies
View Related
Mar 25, 2012

I am trying to conditionally format the top middle and bottom thirds of a range of data. Problem is, that the range needs to be flexible as sometimes there may be a maximum of 36 cells with data, but sometimes there may be less (so there are blank cells in the range that need not be counted). The methods I have tried always include the blank cells, and so it is not equally formatting the thirds (as it includes the blanks cells as part of the bottom data)....

Here are the 2 methods Ive tried so far using excel 2003)

Top 34%:

=IF(INT(COUNT($D$3:$D$38)*34%)>0,LARGE($D$3:$D$38,INT(COUNT($D$3:$D

$38)*34%)),MAX( $D$3:$D$38))0,LARGE($D$3:$D$38,INT(COUNT($D$3:$D

$38)*67%)),MAX( $D$3:$D$38))0,LARGE($D$3:$D$38,INT(COUNT($D$3:$D

$38)*100%)),MAX( $D$3:$D$38))

View 4 Replies
View Related
Aug 18, 2014

I have created a drop down cell based on the cells in the first row of a particular table. Now when i select a particular cell from the drop down i want to fetch all the values in the respective column of the selected cell on to a different group of cells. While fetching the data to those group of cells, i want to ignore all the null, blank cells. All this actions shall be automated and shall happen simultaneously on selecting the drop down.

View 1 Replies
View Related
Oct 24, 2011

I am trying to get a rolling 8wk avg of a large group of data. I am trying to take the avg of 8 vlookups:

=AVERAGE(VLOOKUP($A$9,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-7,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-14,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-21,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-28,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-35,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-42,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE),VLOOKUP($A$9-49,'Raw Data'!$A:$DV,MATCH(B8,'Raw Data'!$2:$2,0), FALSE))

However, in some cases, the cell to be looked-up may be blank. Using the formula above, the result of these vlookups is "0". I want to take the average of these vlookups excluding the blanks from the 'Raw Data' sheet.

View 6 Replies
View Related
Dec 28, 2007

I have a workbook which has data in column A. I also have data in column I. What im trying to do is copy and paste the data from column I to A but if the cell in column I is blank I need that ignored and the data thats in column A at pres kept.

View 9 Replies
View Related
Sep 30, 2009

I am trying to add up wins and loses for individuals on a team. 6 players

There are 3 games per match and one match a week for 15 weeks. One sheet per week.

The players are inputted randomly each week. And the scores are entered after the match.

The following is a part of the formula that I am using but it returns a #NA because the cells in the weeks not played yet are blank, players and scores. Is there a better way to do this or a way I can ignore the blank cells until they are entered. Thanks in advance.

=SUM(LOOKUP($A$17,'Week 1'!$C$20:$D$23,'Week 1'!$E$20:$E$23),LOOKUP($A$17,'Week 2'!$C$20:$D$23,'Week 2'!$E$20:$E$23),etc.)

A17 is the players name, 1st range is where the players name would be entered, 2nd range is where the score is entered.

View 9 Replies
View Related
Feb 14, 2007

1. First thing I am trying to do. I have a column of cells that have multiple values, some with text and some with no values at all. I want to be able to display in A1 the most commonly occurring text in cells C1:C15, and be able to display in B1 the number of times that A1 occurs in the same range. Below are the formulas that I am using. There are two problems that I am running into: First, the formula returns a #NA error if any of the cells in the range are left blank. Second, the formula counts the spaces or zeros, so if there are more blanks than the word “amber” then A1 returns “ ” and B1 returns the corresponding number.

A1

=INDEX(C1:C15,(MODE(MATCH(C1:C15,C1:C15,0))))

B1

=COUNTIF(C1:C16,A1)

2. Second thing I am trying to do. In A2 I want to display the second most commonly occurring text in the range, with it’s corresponding count in cell B2, and the third most in A3 and B3, etc

Illustration:

C1 Amber

C2 Red

C3

C4

C5

C6 Red

Desired result:

A1 "Red" B1 "2"

A2 "Amber" B2 "1"

Results with forumla as posted

A1 " " B1 "3"

View 10 Replies
View Related
Oct 2, 2007

i have a list which is populated with data from another sheet.. if there is no data in the corresponding cell on the other sheet then the cell is blank.. i've tried using:

=OFFSET($Z$2,0,0,MATCH(REPT("z",255),$Z:$Z))

but it doesn't see the blank cells as blank i.e. no data in them as they contain formula's.. (even although there are no values populated) - can anyone offer any help in relation to this???

View 9 Replies
View Related
Apr 30, 2010

I am trying to create a formula which will look at the data in columns A - I (50 rows) and copy this data to columns K - S but ignoring any blank cells. Thereby consolidating the data in the upper rows with no spaces.

View 10 Replies
View Related
Feb 4, 2010

I have attached a spreadsheet with some tele numbers. What i need to do is to find out which column only has 1 telephone number, eg. only a cellphone number, etc. I have aboout 50 000 records that i need to check if only 1 telephone number is available. Can i use the countblank function?

View 2 Replies
View Related
Nov 25, 2006

I am trying to write a formula for the following can anyone help please?

I have column D with blank cells and some with purchase order numbers in them. I want to count the blank cells in column D but only if the blank is 3days older than the date recorded in column A. Once I have done this I want to count ther same on every work sheet and I have 24 off them and get one answer.

This will tell us all the outstanding purchase order older than 3days

View 9 Replies
View Related
Apr 13, 2013

I have a Colom with dates, some cell are coloured and others not, some of the non-coloured cells have dates and some not. I would like to count ONLY the non-coloured cells without dates in them.

View 6 Replies
View Related
Sep 1, 2009

I am trying to put together a table from which I'll attach a chart showing-at a glance-where open complaints are in our process:

are they open, closed, waiting for samples, waiting for QC, QC'd pending admin approval, etc.

my log consists of a lot of columns which track various pertinant info about each complaint. Such as A-complaint ID, B-date opened, C-date closed, K-initial QC investigation, L-final QC, M-admin status (pending/approved/denighed), N-notes (boiler plate notes like "pending ra samples" or "closed").

I used this formula alot in my various analyses =SUMPRODUCT(--(YEAR(Log!open)=$O74),--('ComplaintLog (101408).xls'!iqc="pending")) without issue.

Until now. I want to search multiple criteria starting with the year (2009, in this case) and whether or not the issue is closed (date in column C). Only need a count.

How do I append the sumproduct formula? I've looked at isblank but get crazy results from #value to #name to 340 (I only have 292).

View 5 Replies
View Related
Nov 29, 2011

PeriodWeek #DayDateNotes11Thursday29-DecBB vaca11Friday30-DecBB vaca

Tab1

PeriodWeek #DayDateNotes11Thursday29-DecBB vaca11Friday30-DecBB vaca

Tab 2

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.

=IF('tab1'!E2="","",'tab2'!E2)

View 3 Replies
View Related
Jan 18, 2013

I have a spreadsheet that is used to capture information about Service Requests that my team handles in a 6 month period. At the end of January, the metrics for January will be added and the metrics for July will "fall off".

I need to be able to calculate the number of requests that were still active for each month. The formula I have created for this is below:

=COUNTIFS(Table1[Date Submitted],"Month Beginning of the First Month Being Reported", Table1[Date Closed], ">A Day Before Current Month Closing")

So, if my reporting period was July 2012 to December 2012, my formula for December would look like:

=COUNTIFS(Table1[Date Submitted],"7/1/2012", Table1[Date Closed], ">1/6/2013")

This accounts for anything that was opened in the months that was not closed before the month closing of the current month being reported.

I have two issues that I'm having with this formula:

1. The formula does not take into account the Service Requests that do not have a date in the "Date Closed" columns. Is there a way I can also count the items that have a blank "Date Closed"?

2. This formula will have to be changed every time a month "falls off". For example, when the reporting period changes from July to December to August to January, the formula for December will change to:

=COUNTIFS(Table1[Date Submitted],"8/5/2012", Table1[Date Closed], ">1/6/2013")

Is there a way I can have it change automatically without me having to do it manually?

View 1 Replies
View Related
Feb 24, 2009

I'm trying to to create a formula where if two different cells have no value (K10 & O10) a third cell will also be blank (N10)

I have the following formula which follows these steps when i evaluate it.

=VLOOKUP(K10&O10,$J$77:$K$98,2,0)

=VLOOKUP(" "&O10,$J$77:$K$98,2,0)

=VLOOKUP(" "&" ",$J$77:$K$98,2,0)

=VLOOKUP(" "$J$77:$K$98,2,0)

#N/A

How can i deliver a blank cell as the answer?

View 9 Replies
View Related
Aug 27, 2009

see attached doc. The graph is showing the overall % from the table above. However months april-december are blank although they have a formula in them. This is causing the graph to show thes months as 0%.

View 2 Replies
View Related
Dec 9, 2009

I have a simple date formula that I want to present "yes" in a cell when another cells date is less then or equal to "Today". I just can't figure out how to make it show my result cell as blank if my date cell is blank?

here is my formula....

=IF(G8 <= TODAY(), "YES", "")

View 2 Replies
View Related
Jan 19, 2012

I have a formula counting non blank cells in another sheet 'Mem' I know there are 21 entries in Column M, which it used to show as the result. Today it shows 0. The 21 entries are still there.

Code:

=COUNTA(Mem!$M:M)

The cell containing the formula is B6. The bottom bar of Excel has: Ready Circular:B6

View 2 Replies
View Related
Mar 21, 2012

I want to count the number of cells in column A that are not blank MINUS or EXCLUDING the cells in Column AD whose values are "Closed".

View 9 Replies
View Related
Apr 2, 2008

why it is counting every blank cell as 1. I have tried to copy my data as paste as special value and run pivot again but I get the same result. For you visual consideration, I've attached a sample spreadsheet.

View 6 Replies
View Related
Jul 22, 2014

I have the following formula which counts number of days between dates in two adjacent cells excluding holidays

=NETWORKDAYS(U311,V311,$AA$4:$AA$14)-1

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.

-1

16/07/2014

-29879

20/06/2014

08/07/2014

12

[code].....

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?

View 3 Replies
View Related
Oct 18, 2009

I know this question may have been posted before, but I can not seem to get this to work with my formula. I have a formula to count the values of a column so that I can convert it to a graph. I am giving a value of 1 to cells that contain numbers between 0 and 9.5 and giving a value of 0 to cells that contain numbers greater than 9.5. It works fine except that I have some blank cells that I do not want to get rid of and it is counting those as zeros and giving them a value of one. I want to ignore the blank cells or give them a value of zero.

=IF(AND(F2>=0,F2

View 9 Replies
View Related
Jan 13, 2014

Ok so my named range looks like this:

[Code]....

However, I want to ignore the "" cells and the truly blank cells... However, I think all of them will have "" since I have this formula in all of the ones I'm putting in the range:

[Code]....

How do I go about getting these results into a named range so I can use it on validation since validation only seems to ignore truly blank cells and not the "" ones.

View 4 Replies
View Related
Jul 15, 2008

I can count the blank cells withiin a range using

=COUNTBLANK(C6:AD2506)

But I dont want it to count the cells if the entire row, within that cell, i.e. C6:AD6, is blank.

It should only count the blank cells within a row if there has been some data entered on that row..provided it has been entered within the specified range.

View 14 Replies
View Related
Apr 23, 2009

I'm trying to figure out if an employee is in probation period or not. I have this formula in S3 =IF(TODAY()-R3>90, "No", "Yes"). I need to leave S3 empty if no value in R3 (R3 contain hiring date)

View 2 Replies
View Related