"sumif" and part of a word problem

  • Thread starter Gordon Blackstone
  • Start date
G

Gordon Blackstone

Hello from the sunny Switzerland!

Here is my problem:

column b: different words
column e: numbers

i want to sum all the number in column e if the have the same word in column b

For a unique value (a word)
=SUMIF(B2:B62,"apple",E2:E62)

But how to do the same with a part of a word or sentence in the cell?:
cell value: "have a nice day" and i want to check the value "nice" or
"ice" of the sentence

Use of wild cards? how?

Merci!
 
J

JE McGimpsey

Gordon Blackstone said:
Hello from the sunny Switzerland!

Here is my problem:

column b: different words
column e: numbers

i want to sum all the number in column e if the have the same word in column b

For a unique value (a word)
=SUMIF(B2:B62,"apple",E2:E62)

But how to do the same with a part of a word or sentence in the cell?:
cell value: "have a nice day" and i want to check the value "nice" or
"ice" of the sentence

Use of wild cards? how?

One way:

=SUMIF((B2:B62,"*ice*",E2:E62)
 
G

Gordon Blackstone

One way:

=SUMIF((B2:B62,"*ice*",E2:E62)

Great perfect! Thank you JE McGimpsey!

And what about if you want to have the value "*ice*" in cell (not in
the formula)?

exple: =SUMIF((B2:B62,"*G2*",E2:E62)
and G2 contains ice??
 
J

JE McGimpsey

Gordon Blackstone said:
And what about if you want to have the value "*ice*" in cell (not in
the formula)?

exple: =SUMIF((B2:B62,"*G2*",E2:E62)
and G2 contains ice??

One way:

=SUMIF(B2:B62,"*"&G2&"*",E2:E62)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SUMIF and text 3
sumif issues 1
sumif 1
Another Sumif problem 1
sumif returns blank if all cells blank 7
Countif and sumif combination problem 2
sumifs problem 2
Code to insert a coma 26

Top