Data Validation/Conditional Formatting Assistance Needed

Freidamae

New Member
Joined
Feb 15, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello,

This site has helped me numerous times before I registered as a user. I have been digging for the right answer to my question and I can't seem to find it this time. So, here goes:

I have a time sheet spreadsheet. Hours worked are recorded in time. Hours charged to each division are calculated in numbers. Hidden, we have calculations that change the hours worked in time to a number.

I need to make it to that the sum of charged hours equals the number of hours worked each day.

1676480159326.png

1676480218375.png


In the farthest right cell -1.50, there should be a Data Validation Stop Error Alert as the -1.50 is less than 0. This is one of the many formulas that I have tried.
1676480322252.png


I can use Conditional Formatting to turn cells red (but that tells my user nothing) and I have a formula where it will return text if the cell is not 0. However, my boss would like a more blatant message. Text can be ignored, Data Validation requires a fix to the problem.

Any suggestions are greatly appreciated.

Thanks!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Your formula needs an "equals" sign. But, I have if Z8<0, but if you are looking for any difference, then the formula should be
Excel Formula:
=(z8<>0)
Book1
YZAAAB
5
6
7
8-1.5
9
10
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
Z8Expression=Z8<0textNO



NOTE: this will be red while the users are entering their data. You could put an if in there as well:
=IF(Z8="",FALSE,Z8<>0))
 
Last edited:
Upvote 0
I can get the red cell, but I cannot get a Data Validation Error to pop up when I try the equals sign??

1676481173846.png
 
Upvote 0
OKay, I was thinking the conditional formatting. I'll noodle some more.
 
Upvote 0
What cells do you have the data validation in? and what are the critical cells Columns() used in that calculation? Just Time Start, Time End, and what else?

subsequent edit: What column is the last entered that needs to match the End-Start times? is that entered by the user as well?
 
Upvote 0
how about:

Book1
WXYZAA
7StartTimeEndTimeHours worked Calc to NumberHours Work (Nbr)
802/15/2023 08:0002/15/2023 09:301.51.5
9
10
Sheet3
Cell Formulas
RangeFormula
Y8Y8=(X8-W8)*24
Cells with Data Validation
CellAllowCriteria
Z8Custom=(Z8=Y8)
 
Upvote 0
1676482512802.png
 

Attachments

  • 1676482472739.png
    1676482472739.png
    23.5 KB · Views: 13
Upvote 0
Your fix works for 1 cell but not the range between Columns H-N. Or it works if I put it in cell Z but no one will be entering a number into cell Z as it is a formula??
 
Upvote 0
Your fix works for 1 cell but not the range between Columns H-N. Or it works if I put it in cell Z but no one will be entering a number into cell Z as it is a formula??
I don't know what cells you need the validation for. I asked earlier what the data entry cells were. I gave you what I thought you needed for Column Z, in relation to comparing the calculated time (End-Start) and a decimal number. Any other validation that you need would require more requirements and clearer samples and examples. But, the concept is the same regardless of what you want. Just try to mimic what I've given into the other areas of the workbook.

The xl2bb add in is great for sharing portioins of worksheets.. i suggest you get it to help people better help you.
 
Upvote 0

Forum statistics

Threads
1,223,920
Messages
6,175,376
Members
452,638
Latest member
Oluwabukunmi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top