Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Louis Pretorius (Johannesurg, RSA)
 
Posts: n/a
Default Allocate a value to a cell from an if statement

If I have a test in cell A1:
=if(TEST,let cell C1="MESSAGE1",let cell C1="MESSAGE2")

Note the cell with the if-condition in it is not the one that will contain
either MESSAGE1 or MESSAGE2

The reason is to let the user only enter a value in C1 once a value was
entered into B1. MESSAGE1 wold be something to the extent of "First select
the type in B1". This is to overwrite the user's entry into C1.
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Louis

a formula can only affect the cell it is in .. ie you need to put the IF
formula in C1 if you want the formula to affect C1
you can get around this using VBA
or alternatively, you might like to check out using Data / Validation
click in C1 chose data / validation
choose custom
type
=B1<""
untick "ignore blank"
go to the error tab
write a message
click OK


--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Louis Pretorius (Johannesurg, RSA)" <Louis Pretorius (Johannesurg,
wrote in message
...
If I have a test in cell A1:
=if(TEST,let cell C1="MESSAGE1",let cell C1="MESSAGE2")

Note the cell with the if-condition in it is not the one that will contain
either MESSAGE1 or MESSAGE2

The reason is to let the user only enter a value in C1 once a value was
entered into B1. MESSAGE1 wold be something to the extent of "First select
the type in B1". This is to overwrite the user's entry into C1.



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
Cell addressing using the content of another cell. Jandon Excel Worksheet Functions 1 March 30th 05 06:39 PM
IF Statement that's conditional on multiple IF Stmts in other cell Pat Excel Worksheet Functions 1 March 26th 05 10:31 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
Search for a specific character in a cell in an if statement mcl Excel Worksheet Functions 2 January 4th 05 09:14 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 11:49 PM.

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"