Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
danie
 
Posts: n/a
Default Data entry - Copy contents of cell typed in one cell to another ce

if i type the number 3 in cell b1, how can I get that value copied into cell
c3?
and then when i type in cell b2, to have that value copied into cell c3
which will overwrite the previous number copied?

Thanks,

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SteveG
 
Posts: n/a
Default Data entry - Copy contents of cell typed in one cell to another ce


Try this in C3



=IF(AND(ISBLANK(B1),ISBLANK(B2)),"",IF(ISNUMBER(B2 ),B2,B1))

This will leave C3 blank if both B1 and B2 are empty. If either B1 or
B2 is not empty and if B2 is a number then it will return B2 if not it
will return B1.

HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=522833

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
danie
 
Posts: n/a
Default Data entry - Copy contents of cell typed in one cell to anothe

How should I code the syntax for more than two cells, say 7 cells B1 through
B7?

Thanks,

"SteveG" wrote:


Try this in C3



=IF(AND(ISBLANK(B1),ISBLANK(B2)),"",IF(ISNUMBER(B2 ),B2,B1))

This will leave C3 blank if both B1 and B2 are empty. If either B1 or
B2 is not empty and if B2 is a number then it will return B2 if not it
will return B1.

HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=522833


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
Lock Cell After Data Entry Ripper Excel Discussion (Misc queries) 1 February 28th 06 08:17 PM
data in cell not corresponding with entry Graeme New Users to Excel 1 December 21st 05 04:16 PM
Macro to open workbook and copy and paste values in to orig workbo Dena X Excel Worksheet Functions 1 December 15th 05 11:13 PM
Function syntax to compare cell contents ES Excel Worksheet Functions 2 May 18th 05 03:53 PM
Data Validation / Cell Entry Steve Jones Excel Discussion (Misc queries) 4 March 23rd 05 03:23 PM


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