#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default How Can i combine

How Can i combine the following into one cell:-

=COUNTIF('Mar 07'!$I$1:$I$527,2001)

=COUNTIF(H:H,"5") - COUNTIF(H:H, "<0")

Any help Please
Monty
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How Can i combine


Something like this??

=COUNTIF($I$1:$I$527,2001)&" and
"&COUNTIF(H:H,"5")-COUNTIF(H:H,"<0")


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=564611

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default How Can i combine

Dave

Thanks for this See below for what i am trying to acheive.

In column (I) I have cost centres, which range from 2001 to 2042 and in
column (H) I have the number of days taken for payment. In cell AA4 and I
want to return all payments over 5 days belonging to cost centres
2033,2036,2037 & 2041.

Can you please help.

Monty

"davesexcel" wrote:


Something like this??

=COUNTIF($I$1:$I$527,2001)&" and
"&COUNTIF(H:H,"5")-COUNTIF(H:H,"<0")


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=564611


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default How Can i combine

Try:

=sumproduct(--($I$1:$I$527=2001),--($H$1:$H$5275))

Sumproduct must have arrays (i.e. cannot be columns e.g H:H) and they must
be of same size.

HTH

"Monty" wrote:

Dave

Thanks for this See below for what i am trying to acheive.

In column (I) I have cost centres, which range from 2001 to 2042 and in
column (H) I have the number of days taken for payment. In cell AA4 and I
want to return all payments over 5 days belonging to cost centres
2033,2036,2037 & 2041.

Can you please help.

Monty

"davesexcel" wrote:


Something like this??

=COUNTIF($I$1:$I$527,2001)&" and
"&COUNTIF(H:H,"5")-COUNTIF(H:H,"<0")


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=564611


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default How Can i combine

cheers for this, one more thing how can i add more cost centres to the first
line for example:-
=sumproduct(--($I$1:$I$527=2001,2002,2003),--($H$1:$H$5275))

Thanks again

Monty


"Toppers" wrote:

Try:

=sumproduct(--($I$1:$I$527=2001),--($H$1:$H$5275))

Sumproduct must have arrays (i.e. cannot be columns e.g H:H) and they must
be of same size.

HTH

"Monty" wrote:

Dave

Thanks for this See below for what i am trying to acheive.

In column (I) I have cost centres, which range from 2001 to 2042 and in
column (H) I have the number of days taken for payment. In cell AA4 and I
want to return all payments over 5 days belonging to cost centres
2033,2036,2037 & 2041.

Can you please help.

Monty

"davesexcel" wrote:


Something like this??

=COUNTIF($I$1:$I$527,2001)&" and
"&COUNTIF(H:H,"5")-COUNTIF(H:H,"<0")


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=564611




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default How Can i combine


=SUMPRODUCT(--($I$1:$I$527={2001,2002,2003})*($H$1:$H$5275))

"Monty" wrote:

cheers for this, one more thing how can i add more cost centres to the first
line for example:-
=sumproduct(--($I$1:$I$527=2001,2002,2003),--($H$1:$H$5275))

Thanks again

Monty


"Toppers" wrote:

Try:

=sumproduct(--($I$1:$I$527=2001),--($H$1:$H$5275))

Sumproduct must have arrays (i.e. cannot be columns e.g H:H) and they must
be of same size.

HTH

"Monty" wrote:

Dave

Thanks for this See below for what i am trying to acheive.

In column (I) I have cost centres, which range from 2001 to 2042 and in
column (H) I have the number of days taken for payment. In cell AA4 and I
want to return all payments over 5 days belonging to cost centres
2033,2036,2037 & 2041.

Can you please help.

Monty

"davesexcel" wrote:


Something like this??

=COUNTIF($I$1:$I$527,2001)&" and
"&COUNTIF(H:H,"5")-COUNTIF(H:H,"<0")


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=564611


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
Combine Two Colums Sawyer New Users to Excel 3 May 13th 06 09:39 AM
Can I combine column A into Colum B? Sloth Excel Discussion (Misc queries) 0 February 13th 06 08:37 PM
Combine 2 macro bioyyy Excel Discussion (Misc queries) 3 October 17th 05 07:58 PM
How to combine text from multiple cells? sierra Excel Worksheet Functions 3 July 11th 05 01:55 PM
how to combine multiple files in ms excel fifi Excel Discussion (Misc queries) 1 January 12th 05 11:11 AM


All times are GMT +1. The time now is 07:45 AM.

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"