#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default copy if

if A1 is numeric:
=IF(A1<0,A2,0) or =IF(A1<0,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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 905
Default copy if

"JLatham" wrote:
if A1 is numeric:
=IF(A1<0,A2,0) or =IF(A1<0,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(A1<0,A2,0) or =IF(A1<0,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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
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(A1<0,A2,0) or =IF(A1<0,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(A1<0,A2,0) or =IF(A1<0,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


.

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
How can I copy big ranges of cells without drag or copy/paste? Ricardo Julio Excel Discussion (Misc queries) 3 March 23rd 10 02:38 PM
Copy and paste versus copy and insert copied cells Alana New Users to Excel 1 September 28th 07 08:58 PM
I copy a formula and the results copy from the original cell brooklynsd Excel Discussion (Misc queries) 1 June 23rd 07 01:35 AM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
EXCEL FILE a copy/a copy/a copy ....filename ve New Users to Excel 1 September 29th 05 09:12 PM


All times are GMT +1. The time now is 12:52 AM.

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

About Us

"It's about Microsoft Excel"