ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Need to trigger a warning, if any cell in a column exceeds two (https://www.excelbanter.com/excel-discussion-misc-queries/154844-need-trigger-warning-if-any-cell-column-exceeds-two.html)

Ray[_4_]

Need to trigger a warning, if any cell in a column exceeds two
 
I need to have Excel give me a warning message on worksheet 2
("Monday"), if any cell (19-76) in column AH, on worksheet 1
("Roster") exceeds 2.

I thought that this would work, but it doesn't: =IF(Roster!AH$19:AH
$762,"You are trying to schedule a part-time cashier more than twice
as a cashier!","").

All I get is a "#Value!" error.

I know that this can't be a very hard thing to do with Excel, but then
I am a complete rookie, so any help would be greatly appreciated.

--Ray


T. Valko

Need to trigger a warning, if any cell in a column exceeds two
 
Maybe this:

=IF(COUNTIF(Roster!AH$19:AH$76,"2"),"You are trying to schedule a part-time
cashier more than twice as a cashier!","").

--
Biff
Microsoft Excel MVP


"Ray" wrote in message
ps.com...
I need to have Excel give me a warning message on worksheet 2
("Monday"), if any cell (19-76) in column AH, on worksheet 1
("Roster") exceeds 2.

I thought that this would work, but it doesn't: =IF(Roster!AH$19:AH
$762,"You are trying to schedule a part-time cashier more than twice
as a cashier!","").

All I get is a "#Value!" error.

I know that this can't be a very hard thing to do with Excel, but then
I am a complete rookie, so any help would be greatly appreciated.

--Ray




Greg Wilson

Need to trigger a warning, if any cell in a column exceeds two
 
Try:

=IF(COUNTIF(Roster!AH$19:AH$76, "2"), "Yor are trying...", "")

Greg


All times are GMT +1. The time now is 07:52 AM.

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