A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

copy if



 
 
Thread Tools Display Modes
  #1  
Old April 17th, 2010, 11:22 PM posted to microsoft.public.excel.misc
Derek
external usenet poster
 
Posts: 145
Default copy if

I want to copy data from one cell to another, but only if a 3rd cell has data
example
M3=A2(if A1 has data)

do i need a macro for this
  #2  
Old April 18th, 2010, 12:01 AM posted to microsoft.public.excel.misc
JLatham
external usenet poster
 
Posts: 1,896
Default copy if

if A1 is numeric:
=IF(A10,A2,0) or =IF(A10,A2,"")
and if A1 is text
=IF(A1"",A2,0) or =IF(A1"",A2,"")


"Derek" wrote:

I want to copy data from one cell to another, but only if a 3rd cell has data
example
M3=A2(if A1 has data)

do i need a macro for this

  #3  
Old April 18th, 2010, 12:01 AM posted to microsoft.public.excel.misc
FSt1
external usenet poster
 
Posts: 2,788
Default copy if

hi
in m2 enter...
=if(A1="","",A2)

regards
FSt1

"Derek" wrote:

I want to copy data from one cell to another, but only if a 3rd cell has data
example
M3=A2(if A1 has data)

do i need a macro for this

  #4  
Old April 18th, 2010, 12:17 AM posted to microsoft.public.excel.misc
Joe User[_2_]
external usenet poster
 
Posts: 757
Default copy if

"JLatham" wrote:
if A1 is numeric:
=IF(A10,A2,0) or =IF(A10,A2,"")


And what if A1 "has data", but it is zero? Rhetorical question.


and if A1 is text
=IF(A1"",A2,0) or =IF(A1"",A2,"")


That is also the correct way to determine if A1 "has data" that is numeric.


----- original message -----

"JLatham" wrote in message
...
if A1 is numeric:
=IF(A10,A2,0) or =IF(A10,A2,"")
and if A1 is text
=IF(A1"",A2,0) or =IF(A1"",A2,"")


"Derek" wrote:

I want to copy data from one cell to another, but only if a 3rd cell has
data
example
M3=A2(if A1 has data)

do i need a macro for this


  #5  
Old April 18th, 2010, 01:58 AM posted to microsoft.public.excel.misc
JLatham
external usenet poster
 
Posts: 1,896
Default copy if

No argument with the 0 issue - the data itself could be zero. As for the
other, I like to do it that way when I'm explicitly looking for text entries
in a cell, although might even consider using ISBLANK() but we don't know
that the cell to be tested has a formula or not.

"Joe User" wrote:

"JLatham" wrote:
if A1 is numeric:
=IF(A10,A2,0) or =IF(A10,A2,"")


And what if A1 "has data", but it is zero? Rhetorical question.


and if A1 is text
=IF(A1"",A2,0) or =IF(A1"",A2,"")


That is also the correct way to determine if A1 "has data" that is numeric.


----- original message -----

"JLatham" wrote in message
...
if A1 is numeric:
=IF(A10,A2,0) or =IF(A10,A2,"")
and if A1 is text
=IF(A1"",A2,0) or =IF(A1"",A2,"")


"Derek" wrote:

I want to copy data from one cell to another, but only if a 3rd cell has
data
example
M3=A2(if A1 has data)

do i need a macro for this


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.