ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   if 3 cells have data then add certain value to another cell (https://www.excelbanter.com/excel-worksheet-functions/136751-re-if-3-cells-have-data-then-add-certain-value-another-cell.html)

Mike

if 3 cells have data then add certain value to another cell
 

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Range("D1").FormulaR1C1 = _
"=IF(RC[-3]=""Y"","""",IF(RC[-2]=""Y"","""", " _
& "IF(RC[-1]=""Y"","""",""NO Y IN A1 B1 OR C1"")))"
End Sub

"Gerigto" wrote:

I would like to make cell D1 be blacked out if cells A1, B1 and C1 have a Y
in them. How do I accomplish this? Some people may enter data into D1 first
and thus eliminate any If,then formula I enter into that cell. Is there
another way around this issue?
--
TG



All times are GMT +1. The time now is 03:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com