Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Ignoring Text in a formula

Hi guys,

I have the following formula:

=IFERROR(SUMPRODUCT(--(RIGHT(B6:B33,3)="DEF"),K6:K33)/SUMPRODUCT(--(RIGHT(B6:B33,3)="DEF"),--(K6:K330)),"-")

In the second part of the formula I have specified to ignore cells
containing zero values, however I also need to specify to the formula not to
count cells containing text.

Any help on what I need to add to the formula would be highly appreciated.

Kind regards,

Ant

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Ignoring Text in a formula

=IFERROR(SUMPRODUCT(--(RIGHT(B6:B33,3)="DEF"),K6:K33)/SUMPRODUCT(--(RIGHT(B6:B33,3)="DEF"),--(K6:K330),--(ISNUMBER(K6:K33))),"-")

but you can use AVERAGEIFS

=IFERROR(AVERAGEIFS(K6:K33,B6:B33,"DEF",K6:K33,"0 "),"-")

as AVERAGE ignores blanks

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Anto111" wrote in message
...
Hi guys,

I have the following formula:

=IFERROR(SUMPRODUCT(--(RIGHT(B6:B33,3)="DEF"),K6:K33)/SUMPRODUCT(--(RIGHT(B6:B33,3)="DEF"),--(K6:K330)),"-")

In the second part of the formula I have specified to ignore cells
containing zero values, however I also need to specify to the formula not
to
count cells containing text.

Any help on what I need to add to the formula would be highly appreciated.

Kind regards,

Ant



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Ignoring Text in a formula

I would use ISNUMBER

=IFERROR(SUMPRODUCT(--(RIGHT(B6:B33,3)="DEF"),K6:K33)/SUMPRODUCT(--(RIGHT(B6:B33,3)="DEF"),--(K6:K330),--(ISNUMBER(K6:K33))),"-")


"Anto111" wrote:

Hi guys,

I have the following formula:

=IFERROR(SUMPRODUCT(--(RIGHT(B6:B33,3)="DEF"),K6:K33)/SUMPRODUCT(--(RIGHT(B6:B33,3)="DEF"),--(K6:K330)),"-")

In the second part of the formula I have specified to ignore cells
containing zero values, however I also need to specify to the formula not to
count cells containing text.

Any help on what I need to add to the formula would be highly appreciated.

Kind regards,

Ant

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
SUM - but ignoring text in the data range carol Excel Discussion (Misc queries) 3 May 8th 08 01:05 PM
Graph while ignoring text but not changing text to #NA haruun Charts and Charting in Excel 1 April 29th 08 01:49 AM
Ignoring text and errors with Sumproduct SteveC Excel Worksheet Functions 3 May 1st 06 07:05 PM
can you find specific text in a string ignoring any other text chriscp Excel Discussion (Misc queries) 1 September 18th 05 09:54 PM
I want a formula to ignore text eg 5mts * 5 ignoring the mts any . Malshenton Excel Discussion (Misc queries) 1 January 14th 05 07:59 PM


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