Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Vlookup to count non blank cells

Hello

Can anyone tell me what formula I need please?

I have 2 tables, both have our sites listed in column A. I want the second
table to count how many non blank cells there are in column B for each site
in table 1.

The tables look somthing like this:

Table 1:

Site 1 Data
Site 2 Data
Site 2 Data
Site 2
Site 3
Site 4 Data
Site 4
Site 4

Table 2:

Site 1
Site 2
Site 3
Site 4
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Vlookup to count non blank cells

Hi,

Lets say your second table is in A12 down. Put this in B12 and drag down

=SUMPRODUCT(($A$1:$A$9=A12)*($B$1:$B$9<""))

Mike

"jen2018" wrote:

Hello

Can anyone tell me what formula I need please?

I have 2 tables, both have our sites listed in column A. I want the second
table to count how many non blank cells there are in column B for each site
in table 1.

The tables look somthing like this:

Table 1:

Site 1 Data
Site 2 Data
Site 2 Data
Site 2
Site 3
Site 4 Data
Site 4
Site 4

Table 2:

Site 1
Site 2
Site 3
Site 4

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Vlookup to count non blank cells

Thanks but the data is text, not figures so it doesn't work, also the 2
tables are on separate spreadsheets. Is there another way?

"Mike H" wrote:

Hi,

Lets say your second table is in A12 down. Put this in B12 and drag down

=SUMPRODUCT(($A$1:$A$9=A12)*($B$1:$B$9<""))

Mike

"jen2018" wrote:

Hello

Can anyone tell me what formula I need please?

I have 2 tables, both have our sites listed in column A. I want the second
table to count how many non blank cells there are in column B for each site
in table 1.

The tables look somthing like this:

Table 1:

Site 1 Data
Site 2 Data
Site 2 Data
Site 2
Site 3
Site 4 Data
Site 4
Site 4

Table 2:

Site 1
Site 2
Site 3
Site 4

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Vlookup to count non blank cells

Hi,

Why do you suppose my formula doesn't work on text? Did you try it?

This now assumes your data are on sheet2 and the second table is on another
sheet with the sites names in A1 down.

=SUMPRODUCT((Sheet2!$A$1:$A$9=A1)*(Sheet2!$B$1:$B$ 9<""))

Mike

"jen2018" wrote:

Thanks but the data is text, not figures so it doesn't work, also the 2
tables are on separate spreadsheets. Is there another way?

"Mike H" wrote:

Hi,

Lets say your second table is in A12 down. Put this in B12 and drag down

=SUMPRODUCT(($A$1:$A$9=A12)*($B$1:$B$9<""))

Mike

"jen2018" wrote:

Hello

Can anyone tell me what formula I need please?

I have 2 tables, both have our sites listed in column A. I want the second
table to count how many non blank cells there are in column B for each site
in table 1.

The tables look somthing like this:

Table 1:

Site 1 Data
Site 2 Data
Site 2 Data
Site 2
Site 3
Site 4 Data
Site 4
Site 4

Table 2:

Site 1
Site 2
Site 3
Site 4

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Vlookup to count non blank cells

Thanks Mike

I did try it but must've done something wrong as it came back with an error,
all working now though!

"Mike H" wrote:

Hi,

Why do you suppose my formula doesn't work on text? Did you try it?

This now assumes your data are on sheet2 and the second table is on another
sheet with the sites names in A1 down.

=SUMPRODUCT((Sheet2!$A$1:$A$9=A1)*(Sheet2!$B$1:$B$ 9<""))

Mike

"jen2018" wrote:

Thanks but the data is text, not figures so it doesn't work, also the 2
tables are on separate spreadsheets. Is there another way?

"Mike H" wrote:

Hi,

Lets say your second table is in A12 down. Put this in B12 and drag down

=SUMPRODUCT(($A$1:$A$9=A12)*($B$1:$B$9<""))

Mike

"jen2018" wrote:

Hello

Can anyone tell me what formula I need please?

I have 2 tables, both have our sites listed in column A. I want the second
table to count how many non blank cells there are in column B for each site
in table 1.

The tables look somthing like this:

Table 1:

Site 1 Data
Site 2 Data
Site 2 Data
Site 2
Site 3
Site 4 Data
Site 4
Site 4

Table 2:

Site 1
Site 2
Site 3
Site 4



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Vlookup to count non blank cells

Glad I could help

"jen2018" wrote:

Thanks Mike

I did try it but must've done something wrong as it came back with an error,
all working now though!

"Mike H" wrote:

Hi,

Why do you suppose my formula doesn't work on text? Did you try it?

This now assumes your data are on sheet2 and the second table is on another
sheet with the sites names in A1 down.

=SUMPRODUCT((Sheet2!$A$1:$A$9=A1)*(Sheet2!$B$1:$B$ 9<""))

Mike

"jen2018" wrote:

Thanks but the data is text, not figures so it doesn't work, also the 2
tables are on separate spreadsheets. Is there another way?

"Mike H" wrote:

Hi,

Lets say your second table is in A12 down. Put this in B12 and drag down

=SUMPRODUCT(($A$1:$A$9=A12)*($B$1:$B$9<""))

Mike

"jen2018" wrote:

Hello

Can anyone tell me what formula I need please?

I have 2 tables, both have our sites listed in column A. I want the second
table to count how many non blank cells there are in column B for each site
in table 1.

The tables look somthing like this:

Table 1:

Site 1 Data
Site 2 Data
Site 2 Data
Site 2
Site 3
Site 4 Data
Site 4
Site 4

Table 2:

Site 1
Site 2
Site 3
Site 4

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
Count from Blank & Non-Blank Cells Mandeep Dhami Excel Discussion (Misc queries) 4 February 12th 08 03:25 PM
Count the non blank cells vijaydsk1970 Excel Worksheet Functions 3 November 10th 06 12:04 PM
Help getting count of non-blank cells Casey Excel Discussion (Misc queries) 3 May 18th 06 02:31 PM
Do Not count blank cells imjustme Excel Discussion (Misc queries) 4 November 1st 05 04:44 PM
COUNT ONLY CELLS THAT AREN'T BLANK paulinec Excel Worksheet Functions 8 January 8th 05 01:51 AM


All times are GMT +1. The time now is 09:17 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"