The Book-keepers Forum (BKF)

Post Info TOPIC: CSV/Excel formulas not working


Expert

Status: Offline
Posts: 2021
Date:
CSV/Excel formulas not working
Permalink Closed


Hello all

A client has sent a csv file that I have saved as both excel and csv.  I want to start manipulating the data, but simple formulas are not responding. 

I am trying to input a very simple formula in B3 to get a running balance.  A3+B2-C2

I get an error value, and I have worked out that its down to B2 being empty.  If I put a zero in the cell, it fixes that line.  I have reformatted all cells to number, but this hasnt worked

 

Does anyone know how to get the sheet to default back to the norm of seeing an empty cell as NIL?  

 

Hope that makes sense!



__________________


Guru

Status: Offline
Posts: 1470
Date:
Permalink Closed

Hi Michelle,

You mean that if there is no number in a particular cell then the formula is returning an error message, but if you put a 0 in the cell then you get a correct result?

__________________

Pauline



Forum Moderator & Expert

Status: Offline
Posts: 11981
Date:
Permalink Closed

The issue is that a totally empty (null) cell is not numeric so Excel isn't able to process them,

Try this

Enter the number 1 in an unused cell.

Right click the cell and copy

Highlight the range of cells that you need fixed

right click and choose Paste Special

In the Operation dialogue select multiply

press ok

any field that previously had a value (numeric or text) will remain with the values as previous

any null call will now contain a zero

all of your Excel functions will work again

sorted,

kind regards,

Shaun.


__________________

Shaun

Responses are not meant as a substitute for professional advice. Answers are intended as outline only the advice of a qualified professional with access to all relevant information should be sought before acting on any response given.



Guru

Status: Offline
Posts: 1470
Date:
Permalink Closed

Shamus wrote:

The issue is that a totally empty (null) cell is not numeric so Excel isn't able to process them,



 But my formula works with nothing (I mean no value) in the relevant cell?  



__________________

Pauline



Forum Moderator & Expert

Status: Offline
Posts: 11981
Date:
Permalink Closed

Ah, but is it empty?

Just because you cannot see what is there does not mean to say that it is empty.

Do the multiply by 1 that I did and if it doesn't turn to zero then there was something recognisable in it already.

The only fields that will be affected by my fix are the ones that there are a problem with.



__________________

Shaun

Responses are not meant as a substitute for professional advice. Answers are intended as outline only the advice of a qualified professional with access to all relevant information should be sought before acting on any response given.



Expert

Status: Offline
Posts: 2021
Date:
Permalink Closed

Ive also tried a find and replace.. hoping to find blank cells and replace with 0 but thats not worked either.

Formatted to number, currency and accounting, but no joy still

 

PS: Find and replace - didnt find and replace with NIL, didnt do anything 



-- Edited by FoxAccountancyServices on Friday 7th of June 2013 07:31:37 AM

__________________


Expert

Status: Offline
Posts: 2021
Date:
Permalink Closed

Hey guys, sorry for the delay

Yes Pauline, an empty cell seems to be causing the issue. I have never seen that before. Usually Excel just recognises it as NIL

Sean, no joy I'm afraid? I can see using paste special did something, as it changed entries with .00 to match the no decimal of 1, but there's still an error message until I manually put a number in a blank cell (I have been inputting NIL, but it works with any number)

What a weird situation...

__________________


Forum Moderator & Expert

Status: Offline
Posts: 11981
Date:
Permalink Closed

Hi Michelle,

I'm confused as to whats amiss here.

If not too confidential do you want to pm the spreadsheet over to me and I'll have a look at whats wrong with it.

I will explain the fault not just fix it as that would be no good to you for the future,

kind regards,

Shaun.

__________________

Shaun

Responses are not meant as a substitute for professional advice. Answers are intended as outline only the advice of a qualified professional with access to all relevant information should be sought before acting on any response given.



Expert

Status: Offline
Posts: 2021
Date:
Permalink Closed

Hi

I can send you a portion of it, to work on. A portion that gives no confidential information away. I can apply the remedy to the original, then.. how do I send it on here??

Thanks, really appreciate the assistance


__________________


Expert

Status: Offline
Posts: 2021
Date:
Permalink Closed

.xlsx or .xls Sean?

__________________


Forum Moderator & Expert

Status: Offline
Posts: 11981
Date:
Permalink Closed

Hi Michelle,

sorry for the delay, was just responding to the VAT question where I think that Mark and myself are agreeing with each other but somehow it feels like a disagreement?

either format is fine (I'll be using Excel 2007 on this machine).

kind regards,

Shaun.



__________________

Shaun

Responses are not meant as a substitute for professional advice. Answers are intended as outline only the advice of a qualified professional with access to all relevant information should be sought before acting on any response given.



Forum Moderator & Expert

Status: Offline
Posts: 11981
Date:
Permalink Closed

Hi Michelle,

all fixed. If you check your email you should be able to apply that in future if you hit this specific problem and if that doesn't work then it would be the original sollution from above that you had null values so use the multiply by 1 option.

kindest regards,

Shaun.

__________________

Shaun

Responses are not meant as a substitute for professional advice. Answers are intended as outline only the advice of a qualified professional with access to all relevant information should be sought before acting on any response given.



Expert

Status: Offline
Posts: 2021
Date:
Permalink Closed

Sean, thanks so much for sorting this. For everyone out there, here was the issue, and Sean's remedy...


the empty cells are not empty but rather contain a space.

Highlight all of the affected cells (actually, just highlight columns D, E and F)

go to find & select from the home menu and choose Replace

in the box

For find what press a space character

For Replace with backspace to make sure that there is absolutely nothing in the field

hit replace all and the spread sheet is fixed




__________________


Guru

Status: Offline
Posts: 1470
Date:
Permalink Closed

Hi Michelle/Shaun,

Probably a stupid question, but how did you find out that there was a space in the cells in the first place? (Just interested to know).

__________________

Pauline



Forum Moderator & Expert

Status: Offline
Posts: 11981
Date:
Permalink Closed

There are clever ways to do it but as this is something that I had encountered before all I did was click on one of the cells and attempt a backspace.

If you cannot backspace then its empty. If you can backspace then there is a space in the cell.

a rather nasty one vaguelly linked to this type of error that I have encountered in the past was a space in front of the number. Excel lets you know that there is something amiss by the field being left rather than right alligned but in the case in question the user had thought that the report looked strange so had alligned everything to the right not thinking that there might be a reason that some of the fields looked strange!





__________________

Shaun

Responses are not meant as a substitute for professional advice. Answers are intended as outline only the advice of a qualified professional with access to all relevant information should be sought before acting on any response given.



Expert

Status: Offline
Posts: 1811
Date:
Permalink Closed

"in the case in question the user had thought that the report looked strange so had alligned everything to the right"

Heh!

As well as spaces before the numbers, I've also occasionally seen CSV files in which the values are enclosed in quotation marks. :/


__________________

Vince M Hudd - Soft Rock Software

(I only came here looking for fellow apiarists...)



Guru

Status: Offline
Posts: 1470
Date:
Permalink Closed

I found if you click on the little tool tip that appears when the cell with the formula is selected and click on Show Calculation Steps, the first step that appears shows you that there is a space in the first cell, in the form of " ".

__________________

Pauline



Senior Member

Status: Offline
Posts: 115
Date:
Permalink Closed

Hi Michelle,

I've come across the dreaded "space in a cell" scenario quite a few times in client Excel spreadsheets.  Some seem to think that <space>+<enter> is the same as <delete>.

One observation is that the Sum() function will treat a space (or any text for that matter) as zero.  So, instead of A3+B2-C2 you can write the formula as Sum(A3)+Sum(B2)-Sum(C2) or Sum(A3,B2)-Sum(C2). Note that you cannot write Sum(A3,B2,-C2). An element of error proofing is thus applied to your spreadsheets if you always wrap individual cell references with Sum().

However, you'll often come across this where it may be very time consuming to change an existing spreadsheet to employ this strategy.  In these cases I find that the Edit | Goto (F5 key) followed by Special... and then selecting the Constants radio button in combination with only the Text tick box identifies all cells with text in them.  The ones that look empty are the ones with spaces in them.  Delete the spaces and things should start working again.

I hope this helps.

 



-- Edited by bro0010 on Sunday 23rd of June 2013 01:06:39 PM

__________________

Ian

Ian Brown FCA
Onion Reporting Software Ltd

www.onionrs.co.uk

Sage accounts in Excel to go. No set-up necessary.

Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us
Members Login
Username 
 
Password 
    Remember Me  
©2007-2024 The Book-keepers Forum (BKF). All Rights Reserved. The Book-keepers Forum (BKF) is a trading division of Bookcert Ltd. Registered in England Company Number 05782923. 2 Laurel House, 1 Station Rd, Worle, Weston-super-Mare, North Somerset, BS22 6AR, United Kingdom. The Book-keepers Forum and BKF are trademarks of Bookcert Ltd. This forum is a discussion forum only. There will usually be more than one opinion to any question and any posting should not be viewed as a definitive solution. No responsibility for loss occasioned to any person acting or refraining from action as a result of any posting on this site is accepted by the contributors or The Book-keepers Forum. In all cases, appropriate professional advice should be sought before making a decision. We reserve the right to remove any postings which are offensive, libellous, self-promoting or engaged in covert marketing. We will not notify users of removals. The views expressed in the forum posts are those of the individual and do not necessary reflect or agree with those of The Book-keepers Forum. Any offensive or unsuitable posts will be removed by the moderators. Any reader of this forum can request for a post to be looked into by sending an email to: bookcertltd@gmail.com.

Privacy & Cookie Policy  About