Solved

Excel wild card in formula

Posted on 2015-01-19
6
96 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 49

Assisted Solution

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

pls try

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

Regards
0
 
LVL 32

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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 49

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

786 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