Excel Not "Recognising" Calculated Field From Access

rob51852

Board Regular
Joined
Jun 27, 2016
Messages
190
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
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I'd guess they are coming through as text due to the "" in the calculation.
 
Upvote 0
Solution
Thanks Rory, that was it. Strange because when I simply added two of the cells together (=V3+V4) it worked.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,175
Members
449,071
Latest member
cdnMech

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