MS Query

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,970
Office Version
  1. 2010
Platform
  1. Windows
I have a problem with MS Query

It isn't copying some data over (which derive from an excel formula & is numbers)

Any idea's?

TIA
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
What do you mean by not copying. Do you mean it is not displaying all the records that you expect to receive back?
 
Upvote 0
I have a sheet full of data, I use MS Query to extract the data i need (via a validation cell)

I then use this query & combine various countif's etc for my data colation & charts
Abort - Jan.xls
ABCDEFGHIJ
1ClientIDIntroducerIDMatterIDStartDateAbortDateAuthActDateAuthactReceivedClientNetworkdaysIntroducer
2104056378503/01/06NULLNULLNoGenericSAP LegalMove
3104056378703/01/06NULLNULLNoGenericSAP LegalMove
4213356379003/01/06NULL08/02/06YesFirstActive(REM) FirstActive
5213356379103/01/0610/01/06NULLNoFirstActive(REM)6FirstActive
Jan


Column E - Dates are not being displayed in the SQL Query, nor the networkdays

(Above example is of the raw data before running it through the query)

I have redone the query to no avail

I am stuck!

Thanks
 
Upvote 0
If you right click on the query and choose edit query and then go through the options until you get to disply in Excel or edit query, choose edit query.

This displays the SQL query window. Is the data still showing as NULL in that. If so then your underlying data has Nulls and you need to fix that.
 
Upvote 0
This is my generated SQL

Code:
SELECT `Data$`.ClientID, `Data$`.IntroducerID, `Data$`.MatterID, `Data$`.StartDate, `Data$`.AbortDate, `Data$`.AuthActDate, `Data$`.`Authact Received`, `Data$`.Client, `Data$`.Networkdays, `Data$`.Introducer
FROM `P:\MI & Analysis\Abort - Jan`.`Data$` `Data$`
WHERE (`Data$`.Introducer Like ?)
 
Upvote 0
You need to disitnguish between whether it is a problem in Excel or a problem in the underlying data. Is AuthAcDate allowed to have nulls in the underlying data? If so then Excel is just displaying what is there.
 
Upvote 0
You need to disitnguish between whether it is a problem in Excel or a problem in the underlying data. Is AuthAcDate allowed to have nulls in the underlying data? If so then Excel is just displaying what is there.

AuthAcDate has Null & dates in the raw data - see below data

I need it to show both NULL & a date (if there is one in the column) in the query
Abort - Jan.xls
FGHI
1AuthActDateAuthactReceivedClientNetworkdays
2NULLNoGenericSAP 
3NULLNoGenericSAP 
408/02/06YesFirstActive(REM) 
5NULLNoFirstActive(REM)6
6NULLNoGenericSAP 
7NULLNoGenericSAP 
8NULLNoGenericSAP 
9NULLNoGenericSAP 
10NULLNoHalifax 
11NULLNoGenericSAP163
12NULLNoOffsetNatWest(PAD)13
13NULLNoGenericSAP 
14NULLNoGenericSAP 
1510/01/06YesGenericSAP3
16NULLNoWOL78
17NULLNoWOL6
1825/01/06YesWOL133
19NULLNoWOL56
2031/01/06YesWOL93
21NULLNoWOL32
22NULLNoWOL133
23NULLNoHalifax4
24NULLNoWoolINT2
25NULLNoGenericSAP3
2606/01/06YesBBS152
27NULLNoGenericSAP73
28NULLNoOffsetRBS(REM)77
Data
 
Upvote 0
Sorry, I do not understand the problem. If there is a null in the date field then there is clearly going to be a null in networkdays.

The formulae are showing the right results. Do you want them to show something else?
 
Upvote 0
The Null, Is the word Null

It's not copying (if and when) there are dates in that column, which is what i need

The networkdays works from this column and the start date - these are not also displaying in the MS Query (query)

I need both the Null & Date (if there is one) displaying in the query, to get the networkdays result for my chart..?
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,509
Members
448,967
Latest member
screechyboy79

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