Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
irresistible007
 
Posts: n/a
Default Part of text as criteria


While Practising my skills I encountered following prob:

Col 'B' = Region, C= Product and D is quantities

Formula to sum quantities sold of product "Beta" to East region:

=SUM(IF((B5:B10="EAST")*(C5:C10="beta"),D5:D10, 0))

(i hope the above formula is efficient enough)

But when I put "Eastern" in any of the cell in Col 'B' it wont give me
the desired result. So I want the 1st condition to look like
B5:B10="East*" but even changing to this i could get the resuts. I have
even tried B5:B10="East& "*"" but doesnt worked.....

Please help!


--
irresistible007


------------------------------------------------------------------------
irresistible007's Profile: http://www.hightechtalks.com/m63
View this thread: http://www.hightechtalks.com/t2293650

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Part of text as criteria

Hi!

=SUM(IF((B5:B10="EAST")*(C5:C10="beta"),D5:D10, 0))

(i hope the above formula is efficient enough)



More efficient (and, normally entered, not an array):

A1 = East
B1 = Beta

=SUMPRODUCT(--(B5:B10=A1),--(C5:C10=B1),D5:D10)

To do the same thing in which the cells in B5:B10 may contain the substring
"East":

=SUMPRODUCT(--(ISNUMBER(SEARCH(A1,B5:B10))),--(C5:C10=B1),D5:D10)

Biff

"irresistible007"
wrote in message
...

While Practising my skills I encountered following prob:

Col 'B' = Region, C= Product and D is quantities

Formula to sum quantities sold of product "Beta" to East region:

=SUM(IF((B5:B10="EAST")*(C5:C10="beta"),D5:D10, 0))

(i hope the above formula is efficient enough)

But when I put "Eastern" in any of the cell in Col 'B' it wont give me
the desired result. So I want the 1st condition to look like
B5:B10="East*" but even changing to this i could get the resuts. I have
even tried B5:B10="East& "*"" but doesnt worked.....

Please help!


--
irresistible007


------------------------------------------------------------------------
irresistible007's Profile: http://www.hightechtalks.com/m63
View this thread: http://www.hightechtalks.com/t2293650



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bruno Campanini
 
Posts: n/a
Default Part of text as criteria

"irresistible007"
wrote in message
...

While Practising my skills I encountered following prob:

Col 'B' = Region, C= Product and D is quantities

Formula to sum quantities sold of product "Beta" to East region:

=SUM(IF((B5:B10="EAST")*(C5:C10="beta"),D5:D10, 0))



=SUMPRODUCT((LEFT(B5:B10,4)="EAST")*
(C5:C10="beta")*D5:D10)

Ciao
Bruno


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 change dimensions of data label text box in pie chart? Gouden Willem Charts and Charting in Excel 3 March 7th 06 12:11 PM
Counting text criteria Belinda Excel Worksheet Functions 1 October 20th 05 10:43 PM
Sort or Filter option? Mcobra41 Excel Worksheet Functions 3 February 23rd 05 07:22 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
Count the text in a column - Part II Peter Curtis Excel Discussion (Misc queries) 3 January 6th 05 06:58 PM


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