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

Hi guys,

I am currently applying the following formula to a speadsheet:

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

In a seperate formula I have also replaced "F DEF" with "C DEF" to return a
different value. What I would now like to do is create a similar formula that
incorparates both sets of data into one formula by identifying only the last
three letters, i.e "DEF".

Any ideas would be greatly appreciated.

Thanks in advance,

Ant


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default Isolating letters for a formula

Use the RIGHT forumula. =RIGHT(A1,3) if you're referring to A1.

"Anto111" wrote:

Hi guys,

I am currently applying the following formula to a speadsheet:

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

In a seperate formula I have also replaced "F DEF" with "C DEF" to return a
different value. What I would now like to do is create a similar formula that
incorparates both sets of data into one formula by identifying only the last
three letters, i.e "DEF".

Any ideas would be greatly appreciated.

Thanks in advance,

Ant


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Isolating letters for a formula

Hi,

thanks for that, just been reading up on that by coincidence but not sure
how to incorparate it into the formula?

Cheers for your time,

Ant

"Anto111" wrote:

Hi guys,

I am currently applying the following formula to a speadsheet:

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

In a seperate formula I have also replaced "F DEF" with "C DEF" to return a
different value. What I would now like to do is create a similar formula that
incorparates both sets of data into one formula by identifying only the last
three letters, i.e "DEF".

Any ideas would be greatly appreciated.

Thanks in advance,

Ant


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Isolating letters for a formula

Try this:

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

Or, maybe this:

=IFERROR(SUMIF(B6:B33,"*DEF",K6:K33)/COUNTIFS(B6:B33,"*DEF",K6:K33,"0"),"-")

--
Biff
Microsoft Excel MVP


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

I am currently applying the following formula to a speadsheet:

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

In a seperate formula I have also replaced "F DEF" with "C DEF" to return
a
different value. What I would now like to do is create a similar formula
that
incorparates both sets of data into one formula by identifying only the
last
three letters, i.e "DEF".

Any ideas would be greatly appreciated.

Thanks in advance,

Ant




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default Isolating letters for a formula

You could either nest your original formula in RIGHT like this:
=RIGHT(IFERROR(SUMPRODUCT(--(B6:B33="F DEF"),K6:K33)/SUMPRODUCT(--(B6:B33="F
DEF"),--(K6:K330)),"-"),3)

or use RIGHT to refer to what you have now from another cell. So if your
=IFERROR(SUMPRODUCT(--(B6:B33="F DEF"),K6:K33)/SUMPRODUCT(--(B6:B33="F
DEF"),--(K6:K330)),"-") formula is in A1, use =RIGHT(A1,3) where you want it
to go.

"Anto111" wrote:

Hi,

thanks for that, just been reading up on that by coincidence but not sure
how to incorparate it into the formula?

Cheers for your time,

Ant

"Anto111" wrote:

Hi guys,

I am currently applying the following formula to a speadsheet:

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

In a seperate formula I have also replaced "F DEF" with "C DEF" to return a
different value. What I would now like to do is create a similar formula that
incorparates both sets of data into one formula by identifying only the last
three letters, i.e "DEF".

Any ideas would be greatly appreciated.

Thanks in advance,

Ant




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Isolating letters for a formula

T. Valko, your an absolute magician,

thank you.

"T. Valko" wrote:

Try this:

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

Or, maybe this:

=IFERROR(SUMIF(B6:B33,"*DEF",K6:K33)/COUNTIFS(B6:B33,"*DEF",K6:K33,"0"),"-")

--
Biff
Microsoft Excel MVP


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

I am currently applying the following formula to a speadsheet:

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

In a seperate formula I have also replaced "F DEF" with "C DEF" to return
a
different value. What I would now like to do is create a similar formula
that
incorparates both sets of data into one formula by identifying only the
last
three letters, i.e "DEF".

Any ideas would be greatly appreciated.

Thanks in advance,

Ant





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Isolating letters for a formula

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Anto111" wrote in message
...
T. Valko, your an absolute magician,

thank you.

"T. Valko" wrote:

Try this:

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

Or, maybe this:

=IFERROR(SUMIF(B6:B33,"*DEF",K6:K33)/COUNTIFS(B6:B33,"*DEF",K6:K33,"0"),"-")

--
Biff
Microsoft Excel MVP


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

I am currently applying the following formula to a speadsheet:

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

In a seperate formula I have also replaced "F DEF" with "C DEF" to
return
a
different value. What I would now like to do is create a similar
formula
that
incorparates both sets of data into one formula by identifying only the
last
three letters, i.e "DEF".

Any ideas would be greatly appreciated.

Thanks in advance,

Ant







  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Isolating letters for a formula

sb, they both worked. I really appreciate your time, thanks. ;-)

"sb1920alk" wrote:

You could either nest your original formula in RIGHT like this:
=RIGHT(IFERROR(SUMPRODUCT(--(B6:B33="F DEF"),K6:K33)/SUMPRODUCT(--(B6:B33="F
DEF"),--(K6:K330)),"-"),3)

or use RIGHT to refer to what you have now from another cell. So if your
=IFERROR(SUMPRODUCT(--(B6:B33="F DEF"),K6:K33)/SUMPRODUCT(--(B6:B33="F
DEF"),--(K6:K330)),"-") formula is in A1, use =RIGHT(A1,3) where you want it
to go.

"Anto111" wrote:

Hi,

thanks for that, just been reading up on that by coincidence but not sure
how to incorparate it into the formula?

Cheers for your time,

Ant

"Anto111" wrote:

Hi guys,

I am currently applying the following formula to a speadsheet:

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

In a seperate formula I have also replaced "F DEF" with "C DEF" to return a
different value. What I would now like to do is create a similar formula that
incorparates both sets of data into one formula by identifying only the last
three letters, i.e "DEF".

Any ideas would be greatly appreciated.

Thanks in advance,

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
Isolating text and numbers [email protected] Excel Discussion (Misc queries) 8 April 28th 07 02:29 AM
Isolating mailadresses Therese Excel Worksheet Functions 1 September 18th 06 12:15 PM
Isolating months Brisbane Rob Excel Discussion (Misc queries) 5 March 15th 06 06:30 PM
Isolating Email addresses H00tenanny Excel Worksheet Functions 4 October 24th 05 04:46 AM
Isolating a Keyboard Shortcut RWN Setting up and Configuration of Excel 1 October 23rd 05 09:55 PM


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