Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Ignoring Formulas within cells


Is there a way to have a function/formula when evalutating a cell, look at
the result of the formula within that cell and not the formula? For instance:
The formulas in range A1:A20 is =IF(LEFT($G4,3)="DET",G4,""). How can I
count/sum the instances in range A1:A20 where =IF(LEFT($G4,3)="DET",G4,"")
is true?

I have tried:
COUNTif(LEFT($A1:A20,3)="DET")
SUMIF(LEFT($A1:A20,3)="DET").

Thanks...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Ignoring Formulas within cells

Just:

COUNTif($A1:A20="DET")



"jimswinder" wrote:


Is there a way to have a function/formula when evalutating a cell, look at
the result of the formula within that cell and not the formula? For instance:
The formulas in range A1:A20 is =IF(LEFT($G4,3)="DET",G4,""). How can I
count/sum the instances in range A1:A20 where =IF(LEFT($G4,3)="DET",G4,"")
is true?

I have tried:
COUNTif(LEFT($A1:A20,3)="DET")
SUMIF(LEFT($A1:A20,3)="DET").

Thanks...

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Ignoring Formulas within cells

But there is more than just DET in the result....it could be DET Jones, DET
Smith, etc....

"Duke Carey" wrote:

Just:

COUNTif($A1:A20="DET")



"jimswinder" wrote:


Is there a way to have a function/formula when evalutating a cell, look at
the result of the formula within that cell and not the formula? For instance:
The formulas in range A1:A20 is =IF(LEFT($G4,3)="DET",G4,""). How can I
count/sum the instances in range A1:A20 where =IF(LEFT($G4,3)="DET",G4,"")
is true?

I have tried:
COUNTif(LEFT($A1:A20,3)="DET")
SUMIF(LEFT($A1:A20,3)="DET").

Thanks...

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Ignoring Formulas within cells

Sorry - didn't read that too closely

How about

=COUNTA($A1:A20)-COUNTIF($A1:A20="")

"jimswinder" wrote:


Is there a way to have a function/formula when evalutating a cell, look at
the result of the formula within that cell and not the formula? For instance:
The formulas in range A1:A20 is =IF(LEFT($G4,3)="DET",G4,""). How can I
count/sum the instances in range A1:A20 where =IF(LEFT($G4,3)="DET",G4,"")
is true?

I have tried:
COUNTif(LEFT($A1:A20,3)="DET")
SUMIF(LEFT($A1:A20,3)="DET").

Thanks...

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Ignoring Formulas within cells

I will try that...but won't it recognize the formula in the cell and think it
is not blank ("")?

"Duke Carey" wrote:

Sorry - didn't read that too closely

How about

=COUNTA($A1:A20)-COUNTIF($A1:A20="")

"jimswinder" wrote:


Is there a way to have a function/formula when evalutating a cell, look at
the result of the formula within that cell and not the formula? For instance:
The formulas in range A1:A20 is =IF(LEFT($G4,3)="DET",G4,""). How can I
count/sum the instances in range A1:A20 where =IF(LEFT($G4,3)="DET",G4,"")
is true?

I have tried:
COUNTif(LEFT($A1:A20,3)="DET")
SUMIF(LEFT($A1:A20,3)="DET").

Thanks...



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Ignoring Formulas within cells

It says I have entered too few arguements...

"jimswinder" wrote:

I will try that...but won't it recognize the formula in the cell and think it
is not blank ("")?

"Duke Carey" wrote:

Sorry - didn't read that too closely

How about

=COUNTA($A1:A20)-COUNTIF($A1:A20="")

"jimswinder" wrote:


Is there a way to have a function/formula when evalutating a cell, look at
the result of the formula within that cell and not the formula? For instance:
The formulas in range A1:A20 is =IF(LEFT($G4,3)="DET",G4,""). How can I
count/sum the instances in range A1:A20 where =IF(LEFT($G4,3)="DET",G4,"")
is true?

I have tried:
COUNTif(LEFT($A1:A20,3)="DET")
SUMIF(LEFT($A1:A20,3)="DET").

Thanks...

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default Ignoring Formulas within cells


jimswinder wrote:
I will try that...but won't it recognize the formula in the cell and think it
is not blank ("")?

"Duke Carey" wrote:

Sorry - didn't read that too closely

How about

=COUNTA($A1:A20)-COUNTIF($A1:A20="")

"jimswinder" wrote:


Is there a way to have a function/formula when evalutating a cell, look at
the result of the formula within that cell and not the formula? For instance:
The formulas in range A1:A20 is =IF(LEFT($G4,3)="DET",G4,""). How can I
count/sum the instances in range A1:A20 where =IF(LEFT($G4,3)="DET",G4,"")
is true?

I have tried:
COUNTif(LEFT($A1:A20,3)="DET")
SUMIF(LEFT($A1:A20,3)="DET").

Thanks...


Hi,

Maybe you can try a SUMPRODUCT approach. Something along the lines of:

=SUMPRODUCT(--(LEFT(A1:A20,3)="det"))

Regards,
Bondi

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Ignoring Formulas within cells

do I need to input a range where the -- is in the fromula
=SUMPRODUCT(--(LEFT(A1:A20,3)="det"))


"Bondi" wrote:


jimswinder wrote:
I will try that...but won't it recognize the formula in the cell and think it
is not blank ("")?

"Duke Carey" wrote:

Sorry - didn't read that too closely

How about

=COUNTA($A1:A20)-COUNTIF($A1:A20="")

"jimswinder" wrote:


Is there a way to have a function/formula when evalutating a cell, look at
the result of the formula within that cell and not the formula? For instance:
The formulas in range A1:A20 is =IF(LEFT($G4,3)="DET",G4,""). How can I
count/sum the instances in range A1:A20 where =IF(LEFT($G4,3)="DET",G4,"")
is true?

I have tried:
COUNTif(LEFT($A1:A20,3)="DET")
SUMIF(LEFT($A1:A20,3)="DET").

Thanks...


Hi,

Maybe you can try a SUMPRODUCT approach. Something along the lines of:

=SUMPRODUCT(--(LEFT(A1:A20,3)="det"))

Regards,
Bondi


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Ignoring Formulas within cells

THAT WORKED!!!!!

THANKS!!!!

"Bondi" wrote:


jimswinder wrote:
I will try that...but won't it recognize the formula in the cell and think it
is not blank ("")?

"Duke Carey" wrote:

Sorry - didn't read that too closely

How about

=COUNTA($A1:A20)-COUNTIF($A1:A20="")

"jimswinder" wrote:


Is there a way to have a function/formula when evalutating a cell, look at
the result of the formula within that cell and not the formula? For instance:
The formulas in range A1:A20 is =IF(LEFT($G4,3)="DET",G4,""). How can I
count/sum the instances in range A1:A20 where =IF(LEFT($G4,3)="DET",G4,"")
is true?

I have tried:
COUNTif(LEFT($A1:A20,3)="DET")
SUMIF(LEFT($A1:A20,3)="DET").

Thanks...


Hi,

Maybe you can try a SUMPRODUCT approach. Something along the lines of:

=SUMPRODUCT(--(LEFT(A1:A20,3)="det"))

Regards,
Bondi


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
how do I skip blank cells when writing formulas KatB Excel Worksheet Functions 1 July 11th 06 09:53 PM
Printing cells with conditional formats & formulas John R. Excel Discussion (Misc queries) 2 May 31st 06 12:11 AM
Copying Formulas In Cells That Are Not Nested grendel Excel Discussion (Misc queries) 1 April 26th 06 03:38 AM
how do i protect cells in a shared worksheet Debi Excel Discussion (Misc queries) 3 September 30th 05 11:15 PM
How do you show formulas in certain cells only (not the whole she. andy Excel Worksheet Functions 2 February 16th 05 07:05 PM


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