Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default IF statements

In column A there are either values of "JR.", "CPA", "MD", or nothing. Can I
create an IF statement that says if there is a text value in the cell put
parentheses around that value and if there is nothing in the cell do nothing?

Any help would be appreciated
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default IF statements

=IF(A1<"","(" & A1 &")","") entered in B1 and copied down.


Gord Dibben MS Excel MVP


On Thu, 28 Jun 2007 09:46:03 -0700, Excel Function Application
m wrote:

In column A there are either values of "JR.", "CPA", "MD", or nothing. Can I
create an IF statement that says if there is a text value in the cell put
parentheses around that value and if there is nothing in the cell do nothing?

Any help would be appreciated


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default IF statements

Thank you very much Gord. I have several lists with different text entries
but thousands of rows...this is really going to help!

"Gord Dibben" wrote:

=IF(A1<"","(" & A1 &")","") entered in B1 and copied down.


Gord Dibben MS Excel MVP


On Thu, 28 Jun 2007 09:46:03 -0700, Excel Function Application
m wrote:

In column A there are either values of "JR.", "CPA", "MD", or nothing. Can I
create an IF statement that says if there is a text value in the cell put
parentheses around that value and if there is nothing in the cell do nothing?

Any help would be appreciated



  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default IF statements

Don't forget that you can just double-click on the fill handle of B1 to copy
down to end of data in column A.


Gord

On Thu, 28 Jun 2007 11:14:02 -0700, Excel Function Application
m wrote:

Thank you very much Gord. I have several lists with different text entries
but thousands of rows...this is really going to help!

"Gord Dibben" wrote:

=IF(A1<"","(" & A1 &")","") entered in B1 and copied down.


Gord Dibben MS Excel MVP


On Thu, 28 Jun 2007 09:46:03 -0700, Excel Function Application
m wrote:

In column A there are either values of "JR.", "CPA", "MD", or nothing. Can I
create an IF statement that says if there is a text value in the cell put
parentheses around that value and if there is nothing in the cell do nothing?

Any help would be appreciated




  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default IF statements

Again, very helpful.

This is along the same lines so the formula is probably going to be
structured the same way. If you have time that would be great.

I need to get rid of the symbols in one column. I want only text. I have
tried the edit replace route but that leave me with un unnecessary space
where the period used to be.

i.e.

column A column B
..adams adams
johnson johnson
smith smith
..ward ward
wilson wilson

is this possible with an IF statement?

"Gord Dibben" wrote:

Don't forget that you can just double-click on the fill handle of B1 to copy
down to end of data in column A.


Gord

On Thu, 28 Jun 2007 11:14:02 -0700, Excel Function Application
m wrote:

Thank you very much Gord. I have several lists with different text entries
but thousands of rows...this is really going to help!

"Gord Dibben" wrote:

=IF(A1<"","(" & A1 &")","") entered in B1 and copied down.


Gord Dibben MS Excel MVP


On Thu, 28 Jun 2007 09:46:03 -0700, Excel Function Application
m wrote:

In column A there are either values of "JR.", "CPA", "MD", or nothing. Can I
create an IF statement that says if there is a text value in the cell put
parentheses around that value and if there is nothing in the cell do nothing?

Any help would be appreciated






  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default IF statements

If you want column A retained as is..................

Copy A to column B then do your editreplace on B only.

With your sample data, if you replace the dot(.) with nothing you should not
have any spaces.

Otherwise just do the editreplace on column A and dispense with B

If the dot was just a general sample, what other symbols do you need removed?


Gord


On Thu, 28 Jun 2007 12:32:03 -0700, Excel Function Application
m wrote:

Again, very helpful.

This is along the same lines so the formula is probably going to be
structured the same way. If you have time that would be great.

I need to get rid of the symbols in one column. I want only text. I have
tried the edit replace route but that leave me with un unnecessary space
where the period used to be.

i.e.

column A column B
.adams adams
johnson johnson
smith smith
.ward ward
wilson wilson

is this possible with an IF statement?

"Gord Dibben" wrote:

Don't forget that you can just double-click on the fill handle of B1 to copy
down to end of data in column A.


Gord

On Thu, 28 Jun 2007 11:14:02 -0700, Excel Function Application
m wrote:

Thank you very much Gord. I have several lists with different text entries
but thousands of rows...this is really going to help!

"Gord Dibben" wrote:

=IF(A1<"","(" & A1 &")","") entered in B1 and copied down.


Gord Dibben MS Excel MVP


On Thu, 28 Jun 2007 09:46:03 -0700, Excel Function Application
m wrote:

In column A there are either values of "JR.", "CPA", "MD", or nothing. Can I
create an IF statement that says if there is a text value in the cell put
parentheses around that value and if there is nothing in the cell do nothing?

Any help would be appreciated





  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default IF statements

Shutttt uuup! Thanks, Gord

Linda

"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Don't forget that you can just double-click on the fill handle of B1 to
copy
down to end of data in column A.


Gord

On Thu, 28 Jun 2007 11:14:02 -0700, Excel Function Application
m wrote:

Thank you very much Gord. I have several lists with different text
entries
but thousands of rows...this is really going to help!

"Gord Dibben" wrote:

=IF(A1<"","(" & A1 &")","") entered in B1 and copied down.


Gord Dibben MS Excel MVP


On Thu, 28 Jun 2007 09:46:03 -0700, Excel Function Application
m wrote:

In column A there are either values of "JR.", "CPA", "MD", or nothing.
Can I
create an IF statement that says if there is a text value in the cell
put
parentheses around that value and if there is nothing in the cell do
nothing?

Any help would be appreciated





  #8   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default IF statements

You're welcome...........I think<g

Gord

On Thu, 28 Jun 2007 19:55:29 -0400, "Linda \(RQ\)"
wrote:

Shutttt uuup! Thanks, Gord

Linda

"Gord Dibben" <gorddibbATshawDOTca wrote in message
.. .
Don't forget that you can just double-click on the fill handle of B1 to
copy
down to end of data in column A.


Gord

On Thu, 28 Jun 2007 11:14:02 -0700, Excel Function Application
m wrote:

Thank you very much Gord. I have several lists with different text
entries
but thousands of rows...this is really going to help!

"Gord Dibben" wrote:

=IF(A1<"","(" & A1 &")","") entered in B1 and copied down.


Gord Dibben MS Excel MVP


On Thu, 28 Jun 2007 09:46:03 -0700, Excel Function Application
m wrote:

In column A there are either values of "JR.", "CPA", "MD", or nothing.
Can I
create an IF statement that says if there is a text value in the cell
put
parentheses around that value and if there is nothing in the cell do
nothing?

Any help would be appreciated





  #9   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 964
Default IF statements

Since you only have 3 values, I think the easiest way to do this would be
using FIND/REPLACE.

Select your range of data
From the Edit Menu, choose "Replace"
In the Find What field enter: JR.
In the Replace With field enter: (JR.)
Click "Replace All"
Repeat for CPA and MD

HTH,
Elkar


"Excel Function Application" wrote:

In column A there are either values of "JR.", "CPA", "MD", or nothing. Can I
create an IF statement that says if there is a text value in the cell put
parentheses around that value and if there is nothing in the cell do nothing?

Any help would be appreciated

  #10   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,718
Default IF statements

one way...

=SUBSTITUTE(A1,A1,"("&A1&")")


"Excel Function Application" wrote:

In column A there are either values of "JR.", "CPA", "MD", or nothing. Can I
create an IF statement that says if there is a text value in the cell put
parentheses around that value and if there is nothing in the cell do nothing?

Any help would be appreciated



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 And statements -- HELP! GI JOE Excel Worksheet Functions 8 March 15th 07 12:58 PM
If, Then Statements RS Excel Worksheet Functions 2 December 1st 06 01:49 AM
If, Then Statements Dave F Excel Worksheet Functions 0 November 30th 06 05:33 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
If statements... Neil Excel Worksheet Functions 2 October 20th 05 05:16 PM


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