Compare multiple cells

chaboyski

Board Regular
Joined
Aug 18, 2020
Messages
57
Office Version
  1. 2016
Platform
  1. Windows
Hi,

need assistance with comparing 5 cells and show if its true or false.

example is:

d2:h2 has all 8am as the time, need a formula to show that it is true and if there is a different schedule that it would show false.

Book2
DEFGH
128-Aug29-Aug30-Aug31-Aug1-Sep
28:00 AM8:00 AM8:00 AM8:00 AM8:00 AM
311:00 AM11:00 AM10:30 AM10:30 AM9:30 AM
49:00 AM9:00 AM8:00 AM8:00 AM8:00 AM
Sheet1


thank you in advance
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
MrExcelPlayground20.xlsx
DEFGHI
18/28/20238/29/20238/30/20238/31/20239/1/2023
28:00:00 AM8:00:00 AM8:00:00 AM8:00:00 AM8:00:00 AMTRUE
311:00:00 AM11:00:00 AM10:30:00 AM10:30:00 AM9:30:00 AMFALSE
49:00:00 AM9:00:00 AM8:00:00 AM8:00:00 AM8:00:00 AMFALSE
Sheet10
Cell Formulas
RangeFormula
I2:I4I2=AND(MOD(D2,1)=MOD(E2:H2,1))
 
Upvote 0
Hi @JamesCanale

Thank you for the help

i tried it but it gives me an error, i tried to convert it to timevalue but still giving me the value error

i did notice that the value changed when i copy to xl2bb

mmm.xlsx
DEFGHI
128-Aug29-Aug30-Aug31-Aug1-Sep
28:00 AM8:00 AM8:00 AM8:00 AM8:00 AM#VALUE!
311:00 AM11:00 AM10:30 AM10:30 AM9:30 AM#VALUE!
49:00 AM9:00 AM8:00 AM8:00 AM8:00 AM#VALUE!
5
68:00 AM8:00 AM8:00 AM8:00 AM8:00 AM#VALUE!
711:00 AM11:00 AM10:30 AM10:30 AM9:30 AM#VALUE!
89:00 AM9:00 AM8:00 AM8:00 AM8:00 AM#VALUE!
Sheet1
Cell Formulas
RangeFormula
I6:I8,I2:I4I2=AND(MOD(D2,1)=MOD(E2:H2,1))
D6:H8D6=TIMEVALUE(TEXT(D2,"hh:mm"))
 
Upvote 0
I am surprised. Try this:
MrExcelPlayground20.xlsx
DEFGHI
18/28/20238/29/20238/30/20238/31/20239/1/2023
28:00:00 AM8:00:00 AM8:00:00 AM8:00:00 AM8:00:00 AMTRUE
311:00:00 AM11:00:00 AM10:30:00 AM10:30:00 AM9:30:00 AMFALSE
49:00:00 AM9:00:00 AM8:00:00 AM8:00:00 AM8:00:00 AMFALSE
Sheet10
Cell Formulas
RangeFormula
I2:I4I2=AND(MOD(D2,1)=MOD(E2,1),MOD(D2,1)=MOD(F2,1),MOD(G2,1)=MOD(H2,1))
 
Upvote 1
Solution

Forum statistics

Threads
1,215,338
Messages
6,124,346
Members
449,155
Latest member
ravioli44

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