LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default strip out < sign and then calculate

Hi, I am doing a check on a cell value to see if the < sign is
present or not using the LEFT function. eg if left = "<" then return
me the number to the right of the < sign and if < is not present then
just return me the complete cell value (a number).

the reason for doing this is that i then need to check if the value is
another value.


eg, cell shows: <250. the LEFT spreadsheet function strips out the <
sign and returns me 250. then i check if that value is another
value. However even when the cell is showing <250, the formula below
returns "T".. meaning it is saying 2503000. I suspect it's because
once you use RIGHT or LEFT functions then it converts these to text.

actual formula (where the value in D22 is <250) :

=IF(

(IF(LEFT(D22)="<",RIGHT(D22,LEN(D22)-1),D22))3000,

"T","F")

if i just put:

IF(LEFT(D22)="<",RIGHT(D22,LEN(D22)-1),D22)

....in a cell it correctly returns 250 and then in a separate cell if i
check if this value is 3000 it also returns TRUE .. not correct.

any help/advice appreciated very much. thank you

 
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
how can i change dollar sign to rupee sign in sales invoice vishal kohli Excel Discussion (Misc queries) 3 May 10th 07 02:06 PM
to calculate the difference between sign in and signout time in minutes. [email protected] Excel Worksheet Functions 5 October 1st 06 04:55 PM
can I change the $ sign to a £ sign in an MS template? tony Excel Worksheet Functions 1 January 2nd 06 06:31 PM
XL invoice replace the dollar sign with euro sign Pamela casares New Users to Excel 2 December 16th 05 08:21 PM
TAB STRIP icebreaker914 Excel Discussion (Misc queries) 1 April 16th 05 01:24 PM


All times are GMT +1. The time now is 03:38 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"