Filtering Out Fields With Asterisks In MS Query

Oct 14, 2009

I am running a query on my database and trying to filter out a field which contains varying amount of asterisks.

I cannot get it to work.

Tried Contains '*'

Tried Like '[!*]%'

Tried begins with '*'

is an asterisk a wildcard in sql? and if so, is there a character like the tilde I can use to ignore the wildcard and search the actual character?

View 5 Replies


ADVERTISEMENT

Using Asterisks In A String

Nov 14, 2009

using asterisks in a string. I have this

View 4 Replies View Related

VBA Hiding Rows With Asterisks

Jan 1, 2012

I have a worksheet with 4000 rows and only 4 columns.

In quite a lot of the rows in column 2 there are asterisks (**'s).

I have to print out the report without these rows.

First i would like to hide the rows and print the report

Second i then need to delete the rows if there is no data in column 4

View 4 Replies View Related

Hide Password With Asterisks

Jan 7, 2007

I would like to be able to hide a password as its entered. Currently the password is visible when it is firsy typed in and when it is re-typed to confirm the original password.

Can the password be overwritten with symbols (asterisks ?) as it is typed in to prevent others from viewing it ?

View 3 Replies View Related

SUMIF - Text Strings With Numbers / Exact Matches / Asterisks

Jun 19, 2013

Doing some job costing on our lowes invoice and am using SUMIF and asterisks to account for all the different names that get used for properties by the cashiers. An example of that range column is:

67TH AVE
19112 PONCA

51ST
STERLING

9420 67 ST
1503 SW 13TH

51ST
10818

19112 PONCA
19112 PONKA

I have formatted this whole column as text and get strange results from sumif when there are exact matches. For example the "10818" string is uniform through the spreadsheet and returns a result of 0.00 if entered as "*10818*" for criteria but returns the correct amount if I use "10818" or 10818 with no quotes.

It seems to be related to the text strings that contain just "numbers" as I'm having no trouble picking up exact matches when there are alpha characters.

View 2 Replies View Related

Pass Parameter From Excel Through MS Query To MS Access Query

Nov 26, 2012

I have an MS Access query that contains a parameter. The parameter is a date field, and I have configured that in the Access query. If I run the query within the MS Access user interface, it prompts me for the paramater value as expected, and runs just fine. However, I want to connect to this query from within Excel as a data source.

I have created a connection to the Access file using ODBC from within Excel. In the MS Query window, I am merely selecting all of the fields resident in the MS Access query, and returning all values. In other words, there is no selection criteria in the MS Query. I have done this many times with Access queries that DO NOT contain a parameter, and everything works fine. However, in this instance, I need to pass a parameter through to MS Access in order for the query to run. At the moment, I get the "Too Few Paramaters...1 expected" error message. This makes sense, because I haven't figured out how to pass the paramater to MS Access.

Is there a way to structure this that does not involve VB code? If so, I'd love to know how. I have tried creating parameters in MS-Query with the same name, but although I get the prompt it doesn't connect with the Access query as the source for the parameter value.

If the solution requires using code, I'm good with VB Code in Excel...is there VB for Excel code that could make this happen?

Failing that, I guess there must be (I've seen a few in my search thus far) Access VB Code that can make this work. I'm very rusty using VB with Access, so this is my least favored solution. However, if this is the only option, keep in mind that I need to pass the paramater ultimately from a user who will initiate the process using Excel.

View 3 Replies View Related

Query Parameters Which Takes The Date From The Cell Into The Query

Mar 29, 2007

Need the query parameters which takes the date from the cell into the query. How should I modify my query if it needs to take the date from a cell?? The bold one date should be picked from one of the cell in sheet 2.

My query is this
WEB
1
http://fc-web-phl1-101.phl1:8090/gp/...runReport.y=12

Selection=15
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False

View 2 Replies View Related

Convert Column Data Fields To Row Data Fields In Pivot Table

Feb 8, 2014

CountryHourDataTotalData
Austria - A10Sum of SeiA51CountryHourSum of SeiASum of SeiT
Sum of SeiT4.88Austria - A10514.88
1Sum of SeiA561562.83

[Code]....

left side pivot created in vb 6.0 & right side pivot table created manually in excel.

i want to generated pivot table using vb 6.0 same as right side pivot.

Set PRange = ws1.Range("R1:Y" & finalrow)
Set PTCache = wb.PivotCaches.Add(SourceType:=xlDatabase, SourceData:=PRange)
Set PT = PTCache.CreatePivotTable(TableDestination:=ws2.Cells(1, 1),

[Code]....

View 2 Replies View Related

Create An Conection With MS QUERY To A Csv And Query Data

Sep 6, 2008

I have a csv file on another drive on the network that i need to query. I believe that ms query would be the best way. I know that a DSN needs to be setup but this macro will be used by various users who wont know how to do that. thus I would like to create one via VBA every time the task needs to be run.
I haven't a clue how to do this and i need it to be explained to me in general terms with words of one syllable!

View 9 Replies View Related

Query An Access Query With VBA Function

Jul 8, 2008

I'm trying to query a query in Access 2003, from Excel 2003.

The query in Access looks like:
AccessQuery: [SELECT VBAFunction(field1) FROM Table]

The query in Excel looks like:
ExcelQuery: [SELECT * FROM AccessQuery]

I use the following VBA code in Excel to excecute the query:

With ThisWorkbook.Worksheets(cDataSheetName).QueryTables.Add(Connection:=strConnection, _
Destination:=ThisWorkbook.Worksheets(cDataSheetName).Range("A1"), Sql:=strQuery)
.RowNumbers = True
.Refresh BackgroundQuery:=False
iResultRowCount = .ResultRange.Rows.Count
End With
When I execute this code I get the error message 'SQL Syntax Error' (Error 1004). When I remove the VBA function from the query in Access, it all works fine.

View 9 Replies View Related

Edit Query Using Query Wizard

Apr 25, 2006

I created an Ms Excel Database Query to bring in data from MS Access. (versions 2002 of MS Excel and Ms Access). The query works fine initially. I can right click, choose Edit Query and change my criteria. Results are returned almost instantly.

My problem is that, once I save the workbook, or autosave happens, I get an error when I right-click to Edit Query: This query cannot be edited by the Query Wizard..

View 2 Replies View Related

MS Query - Parameters (parameters On A Query But Use A Wildcard To Return All Instances)

Nov 17, 2009

Is it possible to set parameters on a query but use a wildcard to return all instances? I have a query that I want to be able to set multiple parameters on but give the user the ability to select as many or as few parameters as they want to see. 2 of the parameters are number fields and 2 are text fields with no spaces.

View 4 Replies View Related

Filtering More Than One Row Of Each Set?

Nov 10, 2009

I am having an issue filtering data in a spreadsheet:

Each set of information has 5 lines of information (title, information, manager, status, sponsor) and the first column of each data set is a merged 5 row box with the area of operation (this does not have to be merged if this is creating the issue). I need to be able to filter by area of operation and have all 5 rows showing. Right now, Excel only shows me one row for each set of data with the area of operation as one row.

View 2 Replies View Related

Filtering 2nd Row On Spreadsheet Instead Of 1st Row

Mar 11, 2014

I have a spreadsheet with Row 1 as the header and Row 2 as sub-headers. I want to filter automatically to 2nd row, but whenever I press on Ctrl+Shift+L, I have the first column filtered. I have another spreadsheet that whenever I press Ctrl+Shift+L, it automatically filters the 2nd row instead. I'm not pretty sure what's the difference. I have my spreadsheet frozen on cell B3 (not sure if it has something to do with freezing cells. I know I can select 2nd row before pressing on Ctrl+Shift+L, but is there some other way to have this automated?

View 2 Replies View Related

Filtering Dates With ><=

Feb 15, 2009

If I give excel the advanced filter criteria <=2/15/2008 it seems to list all the dates prior to and on that date. Are there any pitfalls to this filtering technique (i.e. would any dates fall through the cracks)?

View 2 Replies View Related

Percentage Of A Value After Filtering

Sep 17, 2009

I would like to know whether it's possible to evaluate the percentage of a text value ie 'Approved', after filters on other columns have been done.

AREA YR DECISION

HN 09 APPROVED
NYM 08 REFUSED
RC 09 APPROVED
HN 09
RC 08 REFUSED
? %

So if I filter by AREA and/or YR, I would like the % of how many were 'Approved' in that filtered range (ignoring any blank cells in the DECISION column).

So far I have a basic
=TEXT(COUNTIF(C2:C6,"*Approved*")/ROWS(C2:C6),"0% ""Approval Rate""")
but it doesn't work once I filter by AREA or YR, and doesn't ignore blanks.

View 5 Replies View Related

Keyword Filtering

Nov 14, 2008

I'm quite newbie for VBA for excel, my friend asked me a favor to filter the data on his excel, so when he enter some keyword, the table would sorted (only show the row that have that keyword), and if possible that he enter it few keyword.

keyword example VB, oracle

table example ....

View 10 Replies View Related

Filtering Columns

May 13, 2009

I have an excel with the following information

A1 - Is a dropdown which will have names of the systems (EAI,Mediation,CDF
..,All)

Row2 will be header which will have following data

B2 - Project Id
C2 - System ID
D2 - Project name
E2 - Project Phase
F2 - Status
from g2 to GN2 there are about 60 resources names entered

From C3 to F3 the data wil be entered and appropriately a chk mark will be
made to the corresponding resource wroking on that project

Say i have about 10 systems provided as dropdown for entering data in A1
(Ex: EAI, MEdiation, .....)
There are resources working for each system

when i apply filtering on a system name i shoud be able
to show only those resources working for that system and all others should be
hidden

Also under the "system" dropdown i will have an option "All", when "All"
option is selected i should be able to see all the data for all the systems.

EX: if i take system "EAI" and if the resources working for eai are there in
AO2 to AX2 then i want the resources from AX2 onwards and before AO2
not to be shown.

If i take a system "Mediation" and if its resources are from Z2 to AI2
then i want resources before Z2 and after AI2 notto be shown.

If "All" option is chosen then i should be able to see the whole sheet
with all the data for all the systems and all resources.

View 12 Replies View Related

Filtering In 2003..?

Oct 9, 2009

I have a filter that works in Excel 2007, and I'm trying to figureout how to make it work in Excel 2003. OrderNums is an array of multiple criteria. The below code works perfectly in Excel 2007.

View 3 Replies View Related

Filtering Before The Pivot?

Nov 3, 2011

I've filtered my data - such as selecting a date range - and then run the pivot, but the pivot ignores the filter and gives me data for all the dates. my workaround is to copy and paste the filtered data to a new sheet and run the pivot off that sheet. This works fine, but maybe I can avoid this step?

View 1 Replies View Related

Filtering Tables With VBA

Dec 11, 2013

I have a worksheet with data in named tables on several sheets. Each of these tables has a column called "filter" (this is not always the same column number between sheets). The values in this column are either 0 or 1, depending on if that particular row is relevant under the book's current selections.

I'm trying to figure out the code that will take a table and filter it to show only the rows which have a 1 under the "filter" column.

View 2 Replies View Related

VBA Code For Filtering?

Jan 31, 2014

I have added below code in module to get list of parts which are not delievered.

I am trying get code which will end the macro as soon as its do not find mentioned crieteria i.e.

("Not Delievered")
Selection.AutoFilter
ActiveSheet.Range("$B$1:$B$5").AutoFilter Field:=1, Criteria1:="Not Delievered"

View 1 Replies View Related

How To Use Sumif With Filtering

Apr 14, 2014

I have a sumif function in a cell which adds values from a table from another sheet. When I apply a filter in the table, the sumif still includes the invisible rows. Is there a simple way to add only the visible rows with a function based on a criteria like with the sumif. i.e. after certain rows are not visible, still a further slection has to be made base don another cell in the same row.

View 2 Replies View Related

Filtering Out Numbers

Jan 22, 2007

I have a worksheet with about 1000 entries and I have this is column F so it can sort out all Euston entries into 1 block. =IF(E1="EUSTON",0,1) What I need to do also if it is possible all entries in column B end in even no's it sorts it out into the block that Euston is in and if their odd no's they go into the other block. Dont know if I can add to this or need something else.

View 9 Replies View Related

Filtering From A List

Feb 2, 2007

to dynamically filter a list as shown below

View 9 Replies View Related

Filtering Addresses

Feb 26, 2007

I have a list of addresses (including street numbers and names), but want to select out addresses that match another list of street names only. I have only used vlookup before, but because one list included street numbers as well, I can't find exact matches.

I am using excell 2007.

View 9 Replies View Related

Filtering Dates

May 30, 2007

I have a three columns of data in A,B,& C.

In column A a From Date
In column B a To Date
In column C a 6 digit number

I would like some code to achieve the following in this order:

1) Find any duplicates of the 6 digit number in column C and then place them on the same row as the first.

I.E if the following three matches are somewhere in columns A, B and C:

A B C
08/07/2007 22/12/2007 731655
22/12/2007 29/12/2007 731655
29/12/2007 05/07/2008 731655

I want them to place on the same line in date order like:

08/07/2007 22/12/2007 731655 22/12/200729/12/2007 731655 29/12/2007 05/07/2008 731655 (this line would be on the line above)

2)After all the above has been done I would like the code to go through and looking for matches of dates between column B and A

For example if I had the below two dates somewhere in the list:

A B C
08/07/2007 04/08/2007 729955
04/08/2007 01/09/2007 729293

I would want the bottom one to be moved to the same line as the top like:

A B C D E F
08/07/2007 04/08/2007 729955 04/08/2007 01/09/2007 729293

If there are more than one match like below:

A B C
08/07/2007 04/08/2007 729955
04/08/2007 01/09/2007 729293
04/08/2007 01/10/2007 729273

I would like the following:

A B C D E F
08/07/2007 04/08/2007 729955 04/08/2007 01/09/2007 729293
04/08/2007 01/10/2007 729273

3) AFter this was completed I would like to look for date matches one day apart for example:

A B C
08/07/2007 04/08/2007 759955
05/08/2007 01/09/2007 759293

And then place the bottom set of date along side the top like:

A B C D E F
08/07/2007 04/08/2007 759955 05/08/2007 01/09/2007 759293

View 9 Replies View Related

[VBA] Day Of Week Filtering

Sep 16, 2007

I've been trying to write code to filter a list of date base on day of week (Mon, Tue, etc)

My problem is that i can't find a way to code the filter criteria... since the date does not contain any week of day constant. i don't want to create another column in my sheet to show the week of day constant and filter this instead.

Here's my not yet finished code...

Sub DayOfWeek()
Dim sAnswer As String
Dim bWkDay As Byte
Dim loMyData As Range
Dim iFilterCriteria As Integer
Dim Dateserial As Integer
Application.ScreenUpdating = False

sAnswer = InputBox("Please select day to display data (first 3 letter of the day, eg. mon)", Title:="Select day to display")

View 9 Replies View Related

Sorting And Filtering ..

Nov 29, 2007

in the table i have

A1-apples
A2-bananas
A3-eggs
A4-balls
A5-bananas
A6-apples
A7-apples

I need one list that will show me all items that are on list so i would get:

A50-apples
a51-bananas
a52-eggs
a53-balls

to simpilfy this list would show me what types are there in the first list

View 9 Replies View Related

Filtering The Due Dates

May 12, 2008

I have a simple excel sheet and two of the columns show a Due Date and a Received Date. All I want to do is highlight any cell in the Received Date column where the Received Date is greater than the Due Date. The spreadsheet shows Purchase Orders and shows when they were due to be received and when they actually were received. i'd like to be able to show all orders that were received past their due date.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved