Solved

File Formatting is Preventing Correct Formula Calculation

Posted on 2014-12-04
5
70 Views
Last Modified: 2014-12-05
There is something peculiar about the spreadsheet named in this file as "Original".  The way the cells are formatted or populated seem to prevent any formulas from working correctly.

I noticed, however, that if I populate the empty cells (being addressed in the formula) with zero then formulas work.

The Tab named "Original" is the bad file that I get from my supplier.  The other tab named "New COLS…" is the file I manually and painstakenly repaired and entered SUM formulas in COL AG-AK.

I get very large files of this type from a supplier on a regular basis so I really need an immediate solution.  Perhaps I can run a macro that will populate all the empty cells in a selected area with "0"?  Thanks for your help with this, Experts!
Cell-Fomat-not-accepting-formulas.xlsx
0
Comment
Question by:thutchinson
5 Comments
 
LVL 37

Accepted Solution

by:
Neil Russell earned 250 total points
ID: 40481586
Column AA should be
=IF(AND($V2="SSS",$W2="Sterling"),$R2,0)

and AD should be
=IF(AND($V2="SSS",$W2="Sterling"),$R2,0)

The problem was the "" at the end and not a 0
0
 
LVL 21

Assisted Solution

by:Ejgil Hedegaard
Ejgil Hedegaard earned 250 total points
ID: 40481901
Or use =SUM(X2,AA2,AD2) in AG2 if you want the cells in X2, AA2 and AD2 to look empty.
The SUM function use the value 0 for text.
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40482625
Ejgil's suggestion then begs the question, if =SUM(number,text,text) works why doesn't  =number+text+text

Excel is effectively doing the same thing. It is including text in a sum and ignoring it.

Thanks
Rob H
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 40482667
The + operator just doesn't work the same way - it won't ignore any of its operands, whereas SUM can ignore its parameters. It's actually very useful to have the + operator work that way - it allows you to do things like coercing string representations of numbers/dates/booleans to numeric values.
0
 

Author Closing Comment

by:thutchinson
ID: 40483723
Good stuff, thanks guys.   I really appreciate it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now