wildcard in if statement

BradM

New Member
Joined
Jan 27, 2005
Messages
45
Hello, I am having trouble with excel accepting a wildcard in my if statement. The statement works if I remove the wildcard.

here is the statement:

=IF(B:B=6*,IF(E:E<=2,"small","big"),null)

Thanks,
Brad
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743
What are you trying to accomplish? It is unclear as you are referencing entire columns. Is it is anything in the column B starts with 6, and if any number is less than two in e?
 

BradM

New Member
Joined
Jan 27, 2005
Messages
45
That exactly what I am trying to do.

The end result I am working for is to have totals lengths created from a list. The criteria are size, code and length. For example one is The total length based on all codes starting with 6 and are 2" or larger .

I would like to do a sumif but cannot figure out the wildcard.

Thanks for your help.
 

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
Hi,

Maybe ..

=SUM(IF(LEFT(B1:B100,1)="6",B1:B100))

Where B1:B100 is your range. Do not use an entire column, do not place formula in column B, or range in formula. Conform with Ctr + Shift + Enter, not just Enter, as it's an array formula.

Does it help?
 

Zack Barresse

MrExcel MVP
Joined
Dec 9, 2003
Messages
10,881
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
BradM said:
does left mean the character on teh left in the cell
Yes. The specified number of characters you have in the second syntax of the function.
 

Forum statistics

Threads
1,148,229
Messages
5,745,483
Members
423,953
Latest member
MrC54

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top