The Code Cage - Microsoft Office help Free Microsoft Office Help for all Applications!
Computer Tech Support
The Dish Network
 

To stop seeing these ads and get other benefits check This page!

Go Back   The Code Cage Forums > Newsgroups - Microsoft Topics > Newsgroup - Excel Forum > Worksheet Functions

Custom Search
Translate this Page!
Chat In Use Now! Microsoft Office Chat Online now!


Worksheet Functions Post questions in this forum if they are related to using Microsoft Excel Worksheet Functions, e.g Forumale or built in functionality etc.

Hey there!

It looks like you're enjoying but haven't created an account yet. Why not take a minute to register for your own free account now? As a member you get free access to all of our forums and posts plus the ability to post your own messages, communicate directly with other members and much more. Register now!

Already a member? Login at the top of this page to stop seeing this message.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 3rd March 2010, 07:29 PM
r2rcode
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default search for text then add

------ Register to get rid of these "In Post" ads! ------


Cat. No. Cost per
M 20 $2.00
W 10 $1.00
M/W 5 $1.00
M 20 $2.00

based on the matrix above i need a formula to compute the following:
1) search down column 1 for a "M" in the cell/word then total the quantity
in the corresponding row. (for this example "M" would add up to 45, "W"
would be 15).

2) then i need it to be able to total the cost spent for each category (for
this example "M" would be 20*$2+5*$1+20*$2).
Reply to this post


Did you find this post helpful? Yes | No

The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #2 (permalink)  
Old 3rd March 2010, 07:37 PM
T. Valko
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Re: search for text then add

------ Register to get rid of these "In Post" ads! ------


Try this...

=SUMIF(A2:A5,"*M*",B2:B5)

Better to use a cell to hold the criteria...

E2 = M

=SUMIF(A2:A5,"*"&E2&"*",B2:B5)

--
Biff
Microsoft Excel MVP


"r2rcode" <r2rcode@discussions.microsoft.com> wrote in message
news:79108BAB-238C-42E4-9B89-0F1B2F53FF4C@microsoft.com...
> Cat. No. Cost per
> M 20 $2.00
> W 10 $1.00
> M/W 5 $1.00
> M 20 $2.00
>
> based on the matrix above i need a formula to compute the following:
> 1) search down column 1 for a "M" in the cell/word then total the quantity
> in the corresponding row. (for this example "M" would add up to 45, "W"
> would be 15).
>
> 2) then i need it to be able to total the cost spent for each category
> (for
> this example "M" would be 20*$2+5*$1+20*$2).



Reply to this post


Did you find this post helpful? Yes | No
  #3 (permalink)  
Old 4th March 2010, 03:10 PM
r2rcode
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Re: search for text then add

------ Register to get rid of these "In Post" ads! ------


thanks. and what formula will do part 2) of my question where it multiplies
the qty by the cost per and then sums up all the products for a certain
category.

"T. Valko" wrote:

> Try this...
>
> =SUMIF(A2:A5,"*M*",B2:B5)
>
> Better to use a cell to hold the criteria...
>
> E2 = M
>
> =SUMIF(A2:A5,"*"&E2&"*",B2:B5)
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "r2rcode" <r2rcode@discussions.microsoft.com> wrote in message
> news:79108BAB-238C-42E4-9B89-0F1B2F53FF4C@microsoft.com...
> > Cat. No. Cost per
> > M 20 $2.00
> > W 10 $1.00
> > M/W 5 $1.00
> > M 20 $2.00
> >
> > based on the matrix above i need a formula to compute the following:
> > 1) search down column 1 for a "M" in the cell/word then total the quantity
> > in the corresponding row. (for this example "M" would add up to 45, "W"
> > would be 15).
> >
> > 2) then i need it to be able to total the cost spent for each category
> > (for
> > this example "M" would be 20*$2+5*$1+20*$2).

>
>
> .
>

Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #4 (permalink)  
Old 4th March 2010, 04:38 PM
T. Valko
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Re: search for text then add

------ Register to get rid of these "In Post" ads! ------


>thanks. and what formula will do part 2)

Ooops! I don't know how I missed that part.

Try this...

E2 = M

=SUMPRODUCT(--(ISNUMBER(SEARCH(E2,A2:A5))),B2:B5,C2:C5)

--
Biff
Microsoft Excel MVP


"r2rcode" <r2rcode@discussions.microsoft.com> wrote in message
news:5A701F05-1650-416F-B897-EE0C15C85D08@microsoft.com...
> thanks. and what formula will do part 2) of my question where it
> multiplies
> the qty by the cost per and then sums up all the products for a certain
> category.
>
> "T. Valko" wrote:
>
>> Try this...
>>
>> =SUMIF(A2:A5,"*M*",B2:B5)
>>
>> Better to use a cell to hold the criteria...
>>
>> E2 = M
>>
>> =SUMIF(A2:A5,"*"&E2&"*",B2:B5)
>>
>> --
>> Biff
>> Microsoft Excel MVP
>>
>>
>> "r2rcode" <r2rcode@discussions.microsoft.com> wrote in message
>> news:79108BAB-238C-42E4-9B89-0F1B2F53FF4C@microsoft.com...
>> > Cat. No. Cost per
>> > M 20 $2.00
>> > W 10 $1.00
>> > M/W 5 $1.00
>> > M 20 $2.00
>> >
>> > based on the matrix above i need a formula to compute the following:
>> > 1) search down column 1 for a "M" in the cell/word then total the
>> > quantity
>> > in the corresponding row. (for this example "M" would add up to 45,
>> > "W"
>> > would be 15).
>> >
>> > 2) then i need it to be able to total the cost spent for each category
>> > (for
>> > this example "M" would be 20*$2+5*$1+20*$2).

>>
>>
>> .
>>



Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
Reply

Bookmarks

Tags
add, search, text


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

The Code Cage Affilliates


To stop seeing these ads and get other benefits check This page!



All times are GMT +1. The time now is 01:39 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.5.0
No part of this board may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application the represent