Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Need to get contents of one cell to populate into other(s).

I need to populate the contents of one cell (may be date or numerical) to
other cell(s) depending on whether a condition is met. Is there a way to use
one of the Excel Functions to test if there is content in a given cell and
then return just the content of another cell? If there is no content in the
tested cell (cell is empty/blank), I would want no results to move to testing
cell (testing cell needs to remain blank). In addition, would this same
Function be capable of returning the cell content if in one instance, it was
a Date and another it was Numerical?

Any help would/will be greatly appreciated.

SHD

--
SHD
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Need to get contents of one cell to populate into other(s).

:=IF(A1="","",B1)

Will return the contents of B1 if A1 is not blank,

HTH
--
AP

"YellowBird" a écrit dans le message
de ...
I need to populate the contents of one cell (may be date or numerical) to
other cell(s) depending on whether a condition is met. Is there a way to

use
one of the Excel Functions to test if there is content in a given cell and
then return just the content of another cell? If there is no content in

the
tested cell (cell is empty/blank), I would want no results to move to

testing
cell (testing cell needs to remain blank). In addition, would this same
Function be capable of returning the cell content if in one instance, it

was
a Date and another it was Numerical?

Any help would/will be greatly appreciated.

SHD

--
SHD



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Need to get contents of one cell to populate into other(s).

Ardus,

Thanks for your prompt reply. It is appreciated.

This works fine if the "tested" cell has an entry. In the event that the
"tested" cell is blank, it puts a blank in the "testing" cell. This then
causes an error since in the one instance, I am subtracting this result,
which is a Date, from another Date. Subtracting a blank "" from a Date
returns an unwanted result. Even a result of 0 would not work properly. I
would then receive an unwanted result in my calculation of subtracting one
Date from 0.

Is there a way to "test" the contents, which again may be either a Date or
Number, and if the result shows the cell is has neither, return no answer at
all? The result would need to be a cell with nothing in it.

Thanks again for your help.
--
SHD


"Ardus Petus" wrote:

:=IF(A1="","",B1)

Will return the contents of B1 if A1 is not blank,

HTH
--
AP

"YellowBird" a écrit dans le message
de ...
I need to populate the contents of one cell (may be date or numerical) to
other cell(s) depending on whether a condition is met. Is there a way to

use
one of the Excel Functions to test if there is content in a given cell and
then return just the content of another cell? If there is no content in

the
tested cell (cell is empty/blank), I would want no results to move to

testing
cell (testing cell needs to remain blank). In addition, would this same
Function be capable of returning the cell content if in one instance, it

was
a Date and another it was Numerical?

Any help would/will be greatly appreciated.

SHD

--
SHD




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default Need to get contents of one cell to populate into other(s).

What do you want in the "testing" cell. If not blank nor 0, what else?

Regards,
--
AP

"YellowBird" a écrit dans le message
de ...
Ardus,

Thanks for your prompt reply. It is appreciated.

This works fine if the "tested" cell has an entry. In the event that the
"tested" cell is blank, it puts a blank in the "testing" cell. This then
causes an error since in the one instance, I am subtracting this result,
which is a Date, from another Date. Subtracting a blank "" from a Date
returns an unwanted result. Even a result of 0 would not work properly.

I
would then receive an unwanted result in my calculation of subtracting one
Date from 0.

Is there a way to "test" the contents, which again may be either a Date or
Number, and if the result shows the cell is has neither, return no answer

at
all? The result would need to be a cell with nothing in it.

Thanks again for your help.
--
SHD


"Ardus Petus" wrote:

:=IF(A1="","",B1)

Will return the contents of B1 if A1 is not blank,

HTH
--
AP

"YellowBird" a écrit dans le

message
de ...
I need to populate the contents of one cell (may be date or numerical)

to
other cell(s) depending on whether a condition is met. Is there a way

to
use
one of the Excel Functions to test if there is content in a given cell

and
then return just the content of another cell? If there is no content

in
the
tested cell (cell is empty/blank), I would want no results to move to

testing
cell (testing cell needs to remain blank). In addition, would this

same
Function be capable of returning the cell content if in one instance,

it
was
a Date and another it was Numerical?

Any help would/will be greatly appreciated.

SHD

--
SHD








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Need to get contents of one cell to populate into other(s).

Ardus,

The intent is to have a Date moved from cell A30 (hypothetical) to cell J30
(again, hypothetical) if the "testing" cell L30 finds a number in the
€œtested€ cell F30. If there is a number, I want the Date from A30 to
populate to the €œtesting€ cell L30. However, if there is not a number in
F30, I do not want anything to be populated to L30. A blank €œ€ or 0 results
in another calculating cell returning an error when it tries to subtract its
already calculated Date result from a blank or 0, which Excel doesn't like.

I hope that this is not too confusing.

Thanks for any help.

--
SHD


"Ardus Petus" wrote:

What do you want in the "testing" cell. If not blank nor 0, what else?

Regards,
--
AP

"YellowBird" a écrit dans le message
de ...
Ardus,

Thanks for your prompt reply. It is appreciated.

This works fine if the "tested" cell has an entry. In the event that the
"tested" cell is blank, it puts a blank in the "testing" cell. This then
causes an error since in the one instance, I am subtracting this result,
which is a Date, from another Date. Subtracting a blank "" from a Date
returns an unwanted result. Even a result of 0 would not work properly.

I
would then receive an unwanted result in my calculation of subtracting one
Date from 0.

Is there a way to "test" the contents, which again may be either a Date or
Number, and if the result shows the cell is has neither, return no answer

at
all? The result would need to be a cell with nothing in it.

Thanks again for your help.
--
SHD


"Ardus Petus" wrote:

:=IF(A1="","",B1)

Will return the contents of B1 if A1 is not blank,

HTH
--
AP

"YellowBird" a écrit dans le

message
de ...
I need to populate the contents of one cell (may be date or numerical)

to
other cell(s) depending on whether a condition is met. Is there a way

to
use
one of the Excel Functions to test if there is content in a given cell

and
then return just the content of another cell? If there is no content

in
the
tested cell (cell is empty/blank), I would want no results to move to
testing
cell (testing cell needs to remain blank). In addition, would this

same
Function be capable of returning the cell content if in one instance,

it
was
a Date and another it was Numerical?

Any help would/will be greatly appreciated.

SHD

--
SHD






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
concatenate contents of cells whose contents resemble cell referem cathyh Excel Worksheet Functions 3 May 23rd 09 12:16 PM
lookup and populate with adjacent contents Giggly4g Excel Discussion (Misc queries) 2 November 28th 07 10:53 PM
Help with displaying the contents of the last populate cell. Pank New Users to Excel 9 April 4th 07 06:25 PM
Macro to remove contents of cell and move all other contents up one row adw223 Excel Discussion (Misc queries) 1 July 1st 05 03:57 PM
how do populate empty cells with the contents of populated cells . Jim99 Excel Discussion (Misc queries) 6 April 21st 05 05:44 PM


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