Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default COUNTIF In The Row Below


Hi all,

I have a long headers row (A2:BK2) and in the row below there are dates
corresponding to the above. Some of the second row (A3:BK3) does not
have data in various cells and what I want to do is count these empty
cells.

The headers row contains a number of repititions (NB: I didn't create
this spreadsheet - it's horrible!), so in theory I should be able to
use COUNTIF to find out which cells are empty.

My problem is I don't know how to get Excel to first do a COUNTIF on
the header row, and then only COUNTIF there is no data in the row
below.

I hope that makes sense. Any suggestions?

TIA,

SamuelT


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile: http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=559314

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default COUNTIF In The Row Below


countif(A3:BK3;isblank())

Vahur


--
wahur
------------------------------------------------------------------------
wahur's Profile: http://www.excelforum.com/member.php...o&userid=26555
View this thread: http://www.excelforum.com/showthread...hreadid=559314

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default COUNTIF In The Row Below


Thanks Vahur.

To clarify. In the header row I have things such as "Sign-off Date",
"PP Upload" etc repeated a number of times. If I had a range, say
A1:F10 and I wanted to find out how many "PP Upload"s there were, I'd
do:

=COUNTIF(A1:F10, "PP Upload")

If I wanted to count how many blank cells there were, I'd do:

=COUNTIF(A1:F10, "")

What I'm trying to do, however is, in my two rows, is first find all
the "PP Upload"s (for example), and then look in the row below and
COUNTIF that cell is blank.

Hope that is clearer.

Sam


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile: http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=559314

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default COUNTIF In The Row Below

Hi,

you can also use formula =Countblank(a3:bk3) to count blank cells in range
from A3 to BK3.

With best regards,
Nika Lampe

"wahur" wrote:


countif(A3:BK3;isblank())

Vahur


--
wahur
------------------------------------------------------------------------
wahur's Profile: http://www.excelforum.com/member.php...o&userid=26555
View this thread: http://www.excelforum.com/showthread...hreadid=559314


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default COUNTIF In The Row Below


Nika,

Thanks for that. Further clarification: I'm not trying just to count
all the blank cells as a whole, but only those that occur below a
certain (e.g. ""PP Upload") header.

Sam


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile: http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=559314



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 256
Default COUNTIF In The Row Below

Try...

=SUMPRODUCT(--(A2:BK2="PP Upload"),--(A3:BK3=""))

Hope this helps!

In article ,
SamuelT wrote:

Thanks Vahur.

To clarify. In the header row I have things such as "Sign-off Date",
"PP Upload" etc repeated a number of times. If I had a range, say
A1:F10 and I wanted to find out how many "PP Upload"s there were, I'd
do:

=COUNTIF(A1:F10, "PP Upload")

If I wanted to count how many blank cells there were, I'd do:

=COUNTIF(A1:F10, "")

What I'm trying to do, however is, in my two rows, is first find all
the "PP Upload"s (for example), and then look in the row below and
COUNTIF that cell is blank.

Hope that is clearer.

Sam

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default COUNTIF In The Row Below


Hi Vahur
Its an amazing solution. I never know that we use something like --
within sumproduct function. Now samuel has got what he wanted.
Quite amazing! are you an Indian?
Cheers
Raj


--
blissworks
------------------------------------------------------------------------
blissworks's Profile: http://www.excelforum.com/member.php...o&userid=36156
View this thread: http://www.excelforum.com/showthread...hreadid=559314

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 01:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"