Boolean logic using inch symbol

nmounir

Board Regular
Joined
Oct 16, 2020
Messages
107
Office Version
  1. 365
Platform
  1. Windows
I am trying to write a formula using the filter function that includes Boolean logic involving the inch symbol.

=Filter($A$2:$A$4058,$C$2:$C$4058=8 1/2")

8 1/2" here means 8 1/2 inch. All the data input is using 8 1/2". I tried 8 1/2""" and many others ways but nothing is working.

your help is greatly appreciated.
Cheers,
nmounir
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Date and time field.xlsx
ABCDEF
18 1/2"18 1/2"1
2A28 1/2"3
38 1/2"38 1/2"5
4A48 1/2"7
58 1/2"5
6A6
78 1/2"7
8A8
9
Sheet2
Cell Formulas
RangeFormula
D1:E4D1=FILTER(A1:B8,A1:A8="8 1/2""")
Dynamic array formulas.
 
Upvote 0
Thank you very much JGordon11
The last thing I forgot to mention in my original question is how to add an asterisk into the formula because some are written 8 1/2" APP for example.

I tried this but didn't work
=Filter(A1:B8,A1:A8="8 1/2""*") but didn't work. I tried putting in several other places without success.

Your help is much appreciated
 
Upvote 0
Date and time field.xlsx
ABCDEFGHI
18 1/2" abc18 1/2" abc1Filter by:8 1/2"
2A28 1/2" defg3
38 1/2" defg38 1/2" hijkl58 1/2" abc1
4A48 1/2" mnopq78 1/2" defg3
58 1/2" hijkl58 1/2" hijkl5
6A68 1/2" mnopq7
78 1/2" mnopq7
8A8
9
Sheet2
Cell Formulas
RangeFormula
D1:E4D1=LET(m,"8 1/2""",FILTER(A1:B8,LEFT(A1:A8,LEN(m))=m))
G3:H6G3=LET(m,H1,FILTER(A1:B8,LEFT(A1:A8,LEN(m))=m))
Dynamic array formulas.
 
Upvote 0
Solution
Date and time field.xlsx
ABCDEFGHI
18 1/2" abc18 1/2" abc1Filter by:8 1/2"
2A28 1/2" defg3
38 1/2" defg38 1/2" hijkl58 1/2" abc1
4A48 1/2" mnopq78 1/2" defg3
58 1/2" hijkl58 1/2" hijkl5
6A68 1/2" mnopq7
78 1/2" mnopq7
8A8
9
Sheet2
Cell Formulas
RangeFormula
D1:E4D1=LET(m,"8 1/2""",FILTER(A1:B8,LEFT(A1:A8,LEN(m))=m))
G3:H6G3=LET(m,H1,FILTER(A1:B8,LEFT(A1:A8,LEN(m))=m))
Dynamic array formulas.
Absolutely amazing. You are brilliant thank you very much
 
Upvote 0
Not sure which formula structure you ended up using but if it is the column G:H one then I would suggest there is not really an advantage in introducing the variable m since H1 is effectively that variable anyway and using that would eliminate the need for the LET function.

21 10 05.xlsm
ABCGH
18 1/2" abc1Filter by:8 1/2"
2A2
38 1/2" defg38 1/2" abc1
4A48 1/2" defg3
58 1/2" hijkl58 1/2" hijkl5
6A68 1/2" mnopq7
78 1/2" mnopq7
8A8
Filter Inch
Cell Formulas
RangeFormula
G3:H6G3=FILTER(A1:B8,LEFT(A1:A8,LEN(H1))=H1)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,960
Messages
6,122,479
Members
449,088
Latest member
Melvetica

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