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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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?
 
Upvote 0
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.
 
Upvote 0
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?
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,940
Messages
6,122,356
Members
449,080
Latest member
Armadillos

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
Back
Top