Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default CountIf Functions

hi - I eventually used a combination of our formulas and others on this
website. This is the formula that worked:

=SUMPRODUCT(--(A10:A169=A33),--(B10:B1690))

I changed the "=1100" to =A33, which is of the cells that contains 1100.

Then there were (oddly) some data normalization issues (not all the cells
with 1100 and were formatted the same were the same to Excel, so I copied and
pasted to avoid the issue in the formula.)

Column B, above, is the column with date entries.

Many thanks to all who sent replies to help-out!

"Harlan Grove" wrote:

"Don Guillett" wrote...
try this, changing columns to suit
=SUMPRODUCT((F2:F12=1100)*(LEN(TRIM(G2:G12))0) )

....

Doesn't actually check for dates, just for either nonwhitespace text
or numbers in the second column range.

If the OP really means blank, then it'd be better to use either

=SUMPRODUCT((F2:F12=1100)*ISNUMBER(G2:G12))

or (more exacting by ensuring the number is a valid 1900-basis date
serial number)

=SUMPRODUCT((F2:F12=1100)*(G2:G12=--"1990-01-01")*
(G2:G12<=--"9999-12-31"))

But the OP's follow-up leads me to suspect the OP has a mixture of
text and numbers in the first column range, so more robust to use

=SUMPRODUCT((--F2:F12=1100)*(G2:G12=--"1990-01-01")*
(G2:G12<=--"9999-12-31"))

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
COUNTIF & AND Functions Iriemon Excel Worksheet Functions 5 January 30th 07 06:54 PM
COUNTIF & AND FUNCTIONS mike_vr Excel Discussion (Misc queries) 7 November 8th 06 12:23 PM
Using COUNTIF and AND functions together Twinkle17 Excel Worksheet Functions 1 May 18th 06 09:34 AM
countif functions bsantona Excel Worksheet Functions 11 December 19th 05 02:45 AM
COUNTIF functions danowynn Excel Worksheet Functions 4 May 4th 05 10:28 PM


All times are GMT +1. The time now is 07:32 PM.

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

About Us

"It's about Microsoft Excel"