Excel Not "Recognising" Calculated Field From Access

rob51852

Board Regular
Joined
Jun 27, 2016
Messages
159
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I have a query in Excel imported from Access. It includes a calculated field using the following statement:

SQL:
IIf(ballsFaced = 0,"", IIf((GrSRAdj<>1),(runs/ballsFaced)*GrBatAveAdj,(runs/ballsFaced))) AS GrAdjSRRpB

When it is imported into Excel the results don't seem to be recognised. They are visible but when I try to use them in formulas they are not being recognised. Equally, if I highlight the cells I don't see the count/sum/average at the bottom of Excel.

Does anyone know what the problem is?

Thanks
 

Some videos you may like

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

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
35,807
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
I'd guess they are coming through as text due to the "" in the calculation.
 
Solution

rob51852

Board Regular
Joined
Jun 27, 2016
Messages
159
Office Version
  1. 2016
Platform
  1. Windows
Thanks Rory, that was it. Strange because when I simply added two of the cells together (=V3+V4) it worked.
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
35,807
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
Using an explicit mathematical operator (like * - / +) will make Excel coerce the text into a number if it can (but you'll get an error if it can't). Functions like SUM simply ignore any text arguments, even if they look like numbers.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,278
Messages
5,571,279
Members
412,374
Latest member
Nagelgal
Top