Cell content is based on other cell value

M

MIchel Khennafi

Good afternoon.

In a spreadsheet, I allow the users to enter a weight either in Pounds or in
Kilos.

If a user enters the weight in Kilos, I would like to disable the data entry
in the cell where the weight in pounds would be entered.

What would be the trick / formula / worksheet macro to do such a thing...
The condition would be like : If the weight in Kilos is >0 then do not allow
any data entry in a specific cell.

Thanks so much for helping

Michel
 
B

Bill Kuunders

Use <data>< validation>

select to allow "custom"

enter =IF(A2<=0,TRUE,FALSE) in the formula box

enter a message in "error alert" tab

assuming kilo's amount is in A2
 
J

Joerg

Cool! Thanks for the idea.
Based on your suggestion, Bill, the formula could be made even shorter:
validation criteria in A1: =ISBLANK(A2)
validation criteria in A2: =ISBLANK(A1)

Now either A1 or A2 accepts input.

Joerg Mochikun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top