Solved

Excel wild card in formula

Posted on 2015-01-19
6
103 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 26

Expert Comment

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

Assisted Solution

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

pls try

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

Regards
0
 
LVL 33

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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 51

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 6

Author Closing Comment

by:Flora
ID: 40557792
Thank you guys.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

726 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