Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 125
Default count 2 criteria text or numbers

Hi

Have looked on treads and have got the following which works great

=sumproduct(--(A1:a10="test"),--(b1:b10="test1"))

But when I substitute the real requirement from the file, GA01 and 105
respectively, I get 0.

The file is a .CSV, what ever that is, which is generated from a VTMS- AS400.

Does anyone know a way around this problem?

Regards

Brian

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200711/1

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default count 2 criteria text or numbers

Are you putting the 105 inside the quotes of test1 ?

If you have numbers in column B of your file, then you should not use
quotes.

Hope this helps.

Pete

On Nov 20, 7:05 pm, "BNT1 via OfficeKB.com" <u19326@uwe wrote:
Hi

Have looked on treads and have got the following which works great

=sumproduct(--(A1:a10="test"),--(b1:b10="test1"))

But when I substitute the real requirement from the file, GA01 and 105
respectively, I get 0.

The file is a .CSV, what ever that is, which is generated from a VTMS- AS400.

Does anyone know a way around this problem?

Regards

Brian

--
Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-functions/200711/1


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 125
Default count 2 criteria text or numbers

Pete

Thats brilliant, the quotation marks were the sticking point, all working
fine
by the way, not sure if this should this be entered Ctl+Shift+Enter? it
working ok

thanks again

Pete_UK wrote:
Are you putting the 105 inside the quotes of test1 ?

If you have numbers in column B of your file, then you should not use
quotes.

Hope this helps.

Pete

Hi

[quoted text clipped - 15 lines]
--
Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-functions/200711/1


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200711/1

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default count 2 criteria text or numbers

Glad to hear that it worked - thanks for feeding back.

Although SUMPRODUCT acts upon arrays, it does not (generally) need to
be committed with CTRL-SHIFT-ENTER.

Pete

On Nov 20, 7:40 pm, "BNT1 via OfficeKB.com" <u19326@uwe wrote:
Pete

Thats brilliant, the quotation marks were the sticking point, all working
fine
by the way, not sure if this should this be entered Ctl+Shift+Enter? it
working ok

thanks again

Pete_UK wrote:
Are you putting the 105 inside the quotes of test1 ?


If you have numbers in column B of your file, then you should not use
quotes.


Hope this helps.


Pete


Hi


[quoted text clipped - 15 lines]
--
Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-functions/200711/1


--
Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-functions/200711/1


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 by Colour (Text) with other criteria Paul S Excel Discussion (Misc queries) 2 September 27th 07 06:25 AM
count cells,containing text, based on more than one criteria? Sarfraz Excel Worksheet Functions 1 March 30th 07 11:20 PM
Count unique numbers in a range with a given criteria Nelson Excel Discussion (Misc queries) 4 February 9th 07 01:28 PM
Count by Colour (Text) with other criteria Paul Sheppard Excel Discussion (Misc queries) 1 January 18th 06 03:41 PM
how do I count the numbers of row that meet 2 criteria Debi Excel Worksheet Functions 4 November 10th 05 09:56 PM


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