Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default eroro in simple function

I am getting this standard error message with this function.. really strange:

=LEFT(A2, LEN(A2)-2)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default eroro in simple function

I am assuming you are talking about a function in code, not in a spreadsheet?
You can not just reference A2. You have to reference a range, something like
this...

=LEFT(range("A2"), LEN(range("A2")-2)
--
HTH...

Jim Thomlinson


"Calle" wrote:

I am getting this standard error message with this function.. really strange:

=LEFT(A2, LEN(A2)-2)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default eroro in simple function

I tried that and also:

=left(a1,len(a1)-1)

wont work
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default eroro in simple function

It's code in a cell, btw, not a VBA macro or anything

"Calle" wrote:

I tried that and also:

=left(a1,len(a1)-1)

wont work

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default eroro in simple function

Should this work:
=LEFT(range("'Schakt dörr'!G14"), LEN(range("'Schakt dörr'!G14")-3)

strange that it's not working...


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default eroro in simple function

Is there something in A2? If not you will get the #VALUE error.

Jeff

"Calle" wrote in message
...
I am getting this standard error message with this function.. really
strange:

=LEFT(A2, LEN(A2)-2)



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple problem, simple formula, no FUNCTION ! Ron@Buy Excel Worksheet Functions 6 September 28th 07 04:51 PM
Any Help with a Simple Function? Jacob G Excel Programming 6 December 1st 05 04:32 AM
COM Add-in - Simple Function Rasmus A Excel Programming 1 September 28th 05 02:25 PM
simple if then function amy Excel Worksheet Functions 4 July 6th 05 05:36 PM
A simple function Bob Grossman Excel Programming 5 August 30th 03 10:21 AM


All times are GMT +1. The time now is 06:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"