Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default if statments using text

I have been using data base in spread sheets for almost 25 years, Started
with Super Calc 2.

I am using an accounting spread sheet in excel.

I want to use another sheet that adds all the amounts of particular
accounting identifiers.

The identifies are 6 text characters, I.e.. 400-10 plus a string of
characters. i.e.. 400-10 Sales-Dayton-Manufacturing.
Well as you would guess sometimes the identifier is the long on and some
times it is only the left 6 characters

I add another column and fill it with the fist 6 characters of the account
identifier column using the left function. i.e.. left(f2,6) Then I use
that column for my Dsum statement. Sometimes it picks it up and sometimes
not.

So I add two more columns and want to just the left three characters so that
I pick up 400's for test purposes. I write if (f2=400,I2,' ') in another
column but it doesn't recognize 400 which I can plainly see. Since the left
function is a text function I suspect 400 is a text function but I think the
if function should still work.

Please help me!
charles
937 836 3272


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default if statments using text

If it is text, put the value to test for in quotes.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Charles Arnett" wrote in message
. ..
I have been using data base in spread sheets for almost 25 years, Started
with Super Calc 2.

I am using an accounting spread sheet in excel.

I want to use another sheet that adds all the amounts of particular
accounting identifiers.

The identifies are 6 text characters, I.e.. 400-10 plus a string of
characters. i.e.. 400-10 Sales-Dayton-Manufacturing.
Well as you would guess sometimes the identifier is the long on and some
times it is only the left 6 characters

I add another column and fill it with the fist 6 characters of the account
identifier column using the left function. i.e.. left(f2,6) Then I use
that column for my Dsum statement. Sometimes it picks it up and sometimes
not.

So I add two more columns and want to just the left three characters so

that
I pick up 400's for test purposes. I write if (f2=400,I2,' ') in another
column but it doesn't recognize 400 which I can plainly see. Since the

left
function is a text function I suspect 400 is a text function but I think

the
if function should still work.

Please help me!
charles
937 836 3272




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default if statments using text

use

=Value(left(F2,6))

--
Regards,
Tom Ogilvy


"Charles Arnett" wrote in message
. ..
I have been using data base in spread sheets for almost 25 years, Started
with Super Calc 2.

I am using an accounting spread sheet in excel.

I want to use another sheet that adds all the amounts of particular
accounting identifiers.

The identifies are 6 text characters, I.e.. 400-10 plus a string of
characters. i.e.. 400-10 Sales-Dayton-Manufacturing.
Well as you would guess sometimes the identifier is the long on and some
times it is only the left 6 characters

I add another column and fill it with the fist 6 characters of the account
identifier column using the left function. i.e.. left(f2,6) Then I use
that column for my Dsum statement. Sometimes it picks it up and sometimes
not.

So I add two more columns and want to just the left three characters so

that
I pick up 400's for test purposes. I write if (f2=400,I2,' ') in another
column but it doesn't recognize 400 which I can plainly see. Since the

left
function is a text function I suspect 400 is a text function but I think

the
if function should still work.

Please help me!
charles
937 836 3272




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default if statments using text

Try:

f2="400" in your IF
--
Gary''s Student


"Charles Arnett" wrote:

I have been using data base in spread sheets for almost 25 years, Started
with Super Calc 2.

I am using an accounting spread sheet in excel.

I want to use another sheet that adds all the amounts of particular
accounting identifiers.

The identifies are 6 text characters, I.e.. 400-10 plus a string of
characters. i.e.. 400-10 Sales-Dayton-Manufacturing.
Well as you would guess sometimes the identifier is the long on and some
times it is only the left 6 characters

I add another column and fill it with the fist 6 characters of the account
identifier column using the left function. i.e.. left(f2,6) Then I use
that column for my Dsum statement. Sometimes it picks it up and sometimes
not.

So I add two more columns and want to just the left three characters so that
I pick up 400's for test purposes. I write if (f2=400,I2,' ') in another
column but it doesn't recognize 400 which I can plainly see. Since the left
function is a text function I suspect 400 is a text function but I think the
if function should still work.

Please help me!
charles
937 836 3272



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
If then Statments Tina Excel Worksheet Functions 5 January 20th 09 09:43 PM
If statments Lweiss Excel Worksheet Functions 2 March 20th 08 08:01 AM
If Statments Jason Excel Discussion (Misc queries) 2 January 3rd 08 05:33 PM
How do I use "IF" statments to colour text? Ashhy Larry Excel Discussion (Misc queries) 7 October 8th 07 10:11 PM
AND OR IF Statments Rogie Excel Worksheet Functions 3 February 12th 07 04:01 AM


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