ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Using wild card in IF formula (https://www.excelbanter.com/excel-discussion-misc-queries/203082-using-wild-card-if-formula.html)

gcukarski

Using wild card in IF formula
 
I have a list of names in Column A with values in Column B

A B

George 2
George 3
George Total 5
Adam 5
Adam 6
Adam 7
Adam Total 18


I need an IF formula in Column C that will look for cells in Column A that
have the word "total" in them. This is what I've tried and it doesnt work:


=IF(A3="*total*", B3, "")

Please help.

Pete_UK

Using wild card in IF formula
 
Try this:

=IF(ISNUMBER(SEARCH("total",A3)),B3,"")

Search is not case sensitive - you can use FIND if that is important
to you.

Hope this helps.

Pete

On Sep 18, 9:54*pm, gcukarski
wrote:
I have a list of names in Column A with values in Column B

A * * * * * * * * * * * B

George * * * * * * *2
George * * * * * * *3
George Total * * *5
Adam * * * * * * * *5
Adam * * * * * * * *6
Adam * * * * * * * *7
Adam Total * * * *18

I need an IF formula in *Column C that will look for cells in Column A that
have the word "total" in them. This is what I've tried and it doesnt work:

=IF(A3="*total*", B3, "")

Please help.



Sheeloo[_2_]

Using wild card in IF formula
 
Try

=IF(ISERROR(FIND("Total",E19)),"",B3)

This will not match Total but will match total


"gcukarski" wrote:

I have a list of names in Column A with values in Column B

A B

George 2
George 3
George Total 5
Adam 5
Adam 6
Adam 7
Adam Total 18


I need an IF formula in Column C that will look for cells in Column A that
have the word "total" in them. This is what I've tried and it doesnt work:


=IF(A3="*total*", B3, "")

Please help.


Dave Peterson

Using wild card in IF formula
 
One more that uses wildcards:

=if(countif(a3,"*total*")0,b3,"")



gcukarski wrote:

I have a list of names in Column A with values in Column B

A B

George 2
George 3
George Total 5
Adam 5
Adam 6
Adam 7
Adam Total 18

I need an IF formula in Column C that will look for cells in Column A that
have the word "total" in them. This is what I've tried and it doesnt work:

=IF(A3="*total*", B3, "")

Please help.


--

Dave Peterson


All times are GMT +1. The time now is 05:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com