Solved

Excel wild card in formula

Posted on 2015-01-19
6
102 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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

734 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