?
Solved

Excel wild card in formula

Posted on 2015-01-19
6
Medium Priority
?
109 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 52

Assisted Solution

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

pls try

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

Regards
0
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 664 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 52

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 672 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
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.

801 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