Solved

Excel wild card in formula

Posted on 2015-01-19
6
93 Views
Last Modified: 2015-01-19
hello,

my data is like this    i want to put in B2  a formula that triggers, if cell in column A starts with a star * then put nothing if does not start with * then put 1


Column A
*Product*
Prod
Fabc
0
Comment
Question by:Flora
6 Comments
 
LVL 25

Expert Comment

by:ProfessorJimJam
ID: 40557444
=IF(LEFT(J9,1)="*","",1)
0
 
LVL 48

Assisted Solution

by:Rgonzo1971
Rgonzo1971 earned 166 total points
ID: 40557446
Hi,

pls try

=IF(LEFT(A2)="*","","1")

Regards
0
 
LVL 31

Assisted Solution

by:Rob Henson
Rob Henson earned 166 total points
ID: 40557450
* is normally recognised as Wild Card for anything, try referring to the ASCII code for * instead, code 42, eg:


A2 = *PRODUCT*
=IF(LEFT(A2,1)=CHAR(42),"TRUE","FALSE")

Thanks
Rob H
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 48

Expert Comment

by:Rgonzo1971
ID: 40557457
Then it should be

=IF(LEFT(A2)=CHAR(42),"","1")

Regards
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 168 total points
ID: 40557500
The equality operator doesn't recognise wildcards so a simple ="*" test is fine.
0
 
LVL 5

Author Closing Comment

by:Flora
ID: 40557792
Thank you guys.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now