Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sir Lancelot
 
Posts: n/a
Default formula that compares different ranges

I need a formula that finds criteria in a range if a different range contains
text data.
I already use countif
EXAMPLE:
=countif(g4:g51,".")
now I need that formula to work only if (D4:D51) contains text data.


  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default formula that compares different ranges

=SUMPRODUCT(--(ISTEXT(D4:D51)),--(G4:G51="."))

or if you by text means cells hold anything but blank

=SUMPRODUCT(--(D4:D51<""),--(G4:G51="."))

--
Regards,

Peo Sjoblom

(No private emails please)


"sir Lancelot" wrote in message
...
I need a formula that finds criteria in a range if a different range
contains
text data.
I already use countif
EXAMPLE:
=countif(g4:g51,".")
now I need that formula to work only if (D4:D51) contains text data.



  #3   Report Post  
sir Lancelot
 
Posts: n/a
Default formula that compares different ranges

Thank you, Very helpful, have been struggling over this for the past couple
of days. problem solved.

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(ISTEXT(D4:D51)),--(G4:G51="."))

or if you by text means cells hold anything but blank

=SUMPRODUCT(--(D4:D51<""),--(G4:G51="."))

--
Regards,

Peo Sjoblom

(No private emails please)


"sir Lancelot" wrote in message
...
I need a formula that finds criteria in a range if a different range
contains
text data.
I already use countif
EXAMPLE:
=countif(g4:g51,".")
now I need that formula to work only if (D4:D51) contains text data.




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
IF formula? meris Excel Worksheet Functions 1 September 6th 05 07:14 AM
formula to show ranges in columns Lori Excel Worksheet Functions 7 May 23rd 05 12:44 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? Arvi Laanemets Excel Discussion (Misc queries) 0 December 2nd 04 11:29 AM


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