Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 310
Default If function with text value

I am trying to copy one cell to another with a if function. And if there is
nothing in the cell, I would like the other cell to be blank. I have tried
using this formula, but it gives me a #value error message.

Example:

A1=name
B1=name

My Formula: if(A1=" "," ",A1)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default If function with text value

=IF(A1="","",A1)

if you use the result of the formula in a calculation don't use it like

=A1+C2

use

=SUM(A1,C2)


that will ignore text and not return value errors


--


Regards,


Peo Sjoblom



"Michelle" wrote in message
...
I am trying to copy one cell to another with a if function. And if there
is
nothing in the cell, I would like the other cell to be blank. I have
tried
using this formula, but it gives me a #value error message.

Example:

A1=name
B1=name

My Formula: if(A1=" "," ",A1)



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default If function with text value

In B1 enter =IF(A1="","",A1)

Note: don't use spaces between the double quotes unless you are looking for a
space.

But in your case you should not have gotten a #value error if you are entering
the formula in B1.


Gord Dibben MS Excel MVP


On Wed, 19 Sep 2007 15:42:03 -0700, Michelle
wrote:

I am trying to copy one cell to another with a if function. And if there is
nothing in the cell, I would like the other cell to be blank. I have tried
using this formula, but it gives me a #value error message.

Example:

A1=name
B1=name

My Formula: if(A1=" "," ",A1)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default If function with text value

If there's nothing in the cell, and you want the result to be nothing, you don't
have to test for it. Just copy it. In B1, put:

=a1

--
Regards,
Fred


"Michelle" wrote in message
...
I am trying to copy one cell to another with a if function. And if there is
nothing in the cell, I would like the other cell to be blank. I have tried
using this formula, but it gives me a #value error message.

Example:

A1=name
B1=name

My Formula: if(A1=" "," ",A1)



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default If function with text value

I'm confused, Fred, and I expect the OP will be too.
If A1 is empty and I put =A1 in B1, then in B1 I get a zero, which isn't
what I think the OP wants.
I think she needs =IF(A1="","",A1), as others have suggested.
--
David Biddulph

"Fred Smith" wrote in message
...
If there's nothing in the cell, and you want the result to be nothing, you
don't have to test for it. Just copy it. In B1, put:

=a1

--
Regards,
Fred


"Michelle" wrote in message
...
I am trying to copy one cell to another with a if function. And if there
is
nothing in the cell, I would like the other cell to be blank. I have
tried
using this formula, but it gives me a #value error message.

Example:

A1=name
B1=name

My Formula: if(A1=" "," ",A1)







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default If function with text value

You're right. To my simple mind, =if(a1="","",a1) is the same as =a1. But to
Excel, it's not. When a1 is blank, =a1 results in zero, not blank.

--
Regards,
Fred


"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
I'm confused, Fred, and I expect the OP will be too.
If A1 is empty and I put =A1 in B1, then in B1 I get a zero, which isn't what
I think the OP wants.
I think she needs =IF(A1="","",A1), as others have suggested.
--
David Biddulph

"Fred Smith" wrote in message
...
If there's nothing in the cell, and you want the result to be nothing, you
don't have to test for it. Just copy it. In B1, put:

=a1

--
Regards,
Fred


"Michelle" wrote in message
...
I am trying to copy one cell to another with a if function. And if there is
nothing in the cell, I would like the other cell to be blank. I have tried
using this formula, but it gives me a #value error message.

Example:

A1=name
B1=name

My Formula: if(A1=" "," ",A1)







  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default If function with text value

I tried that formula and it just enters the text of the formula into the new
cell instead of the text of the original cell. WHat am I doing wrong?

"Fred Smith" wrote:

You're right. To my simple mind, =if(a1="","",a1) is the same as =a1. But to
Excel, it's not. When a1 is blank, =a1 results in zero, not blank.

--
Regards,
Fred


"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
I'm confused, Fred, and I expect the OP will be too.
If A1 is empty and I put =A1 in B1, then in B1 I get a zero, which isn't what
I think the OP wants.
I think she needs =IF(A1="","",A1), as others have suggested.
--
David Biddulph

"Fred Smith" wrote in message
...
If there's nothing in the cell, and you want the result to be nothing, you
don't have to test for it. Just copy it. In B1, put:

=a1

--
Regards,
Fred


"Michelle" wrote in message
...
I am trying to copy one cell to another with a if function. And if there is
nothing in the cell, I would like the other cell to be blank. I have tried
using this formula, but it gives me a #value error message.

Example:

A1=name
B1=name

My Formula: if(A1=" "," ",A1)







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
Using Concatenate function to generate text in Text Box Mary S. Charts and Charting in Excel 1 December 14th 05 08:55 PM
Text Function Chris Huisken Excel Worksheet Functions 2 April 19th 05 10:24 PM
How can the "NOW()" function be used in text. DWW1945 Excel Worksheet Functions 2 March 6th 05 05:34 PM
using text with a function J.W. Excel Worksheet Functions 5 January 2nd 05 06:17 PM
Macro or Function to make text size to suite text Length? lbbss Excel Discussion (Misc queries) 4 December 14th 04 07:53 PM


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