Convert String DATA into Integer Or

Shafique

Board Regular
Joined
Nov 23, 2018
Messages
119
HI EVERYONE.
In this query, the days field returns the number of days from the LAST date to today, which is returned as a string. Then I move this query to another query where I want to be able to set the criteria of the number of days in the query. Please I want to know the BETWEEN criteria method of number of days in string field
1converting the STRING value into INTEGER
2between criteria in this field
ANY SOLUTION
 

Attachments

  • Untitled1.jpg
    Untitled1.jpg
    18.8 KB · Views: 5
  • 2.jpg
    2.jpg
    43.8 KB · Views: 5
  • 3.jpg
    3.jpg
    7.8 KB · Views: 6

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
You only use Double-Quotes to denote TEXT entries. So remove them from all your formulas where you are wanting to return numbers.

So in your DAYS calculation, change
Rich (BB code):
"0"
to
Rich (BB code):
0
and in your BETWEEN criteria, use:
Rich (BB code):
Between 0 And 90
 
Upvote 0
Solution
You only use Double-Quotes to denote TEXT entries. So remove them from all your formulas where you are wanting to return numbers.

So in your DAYS calculation, change
Rich (BB code):
"0"
to
Rich (BB code):
0
and in your BETWEEN criteria, use:
Rich (BB code):
Between 0 And 90


"Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

.....I LOVE IT
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,096
Latest member
Anshu121

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