Data sorting formula

WorkinOnIt13

Board Regular
Joined
Sep 8, 2005
Messages
90
THis question actually pertains to a Microsoft access database. however it is usually basic formula, so I figured I would ask here as well.

I am using a query to sort data by batch number.

Between [Enter Beginning Batch] And [Enter Ending Batch]

So for example I enter 100 and then 120.

It should only show the batches typed and those in between. Heres my problem. It is also showing any batches like 1101 or 1109 or 1112 cause it sees the "met criteria" in the first three numbers. Is there a formula or an exact statement I can use to keep it from pulling anything but the batches typed and those in between whats typed??

Thanks!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

acw

MrExcel MVP
Joined
Feb 13, 2004
Messages
4,814
Hi

Check the data structure. Make sure the Batch Number is numeric and not alpha.

Tony
 

WorkinOnIt13

Board Regular
Joined
Sep 8, 2005
Messages
90
For petes sake....

Ok I feel really silly cause that is something I was just working with the other day, must have changed it on accident. But thank you very much for your help. It fixed my brain fart error.
 

Forum statistics

Threads
1,137,059
Messages
5,679,369
Members
419,824
Latest member
Mercy kiara

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