Solved

File Formatting is Preventing Correct Formula Calculation

Posted on 2014-12-04
5
73 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 22

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 33

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

752 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