Check value of cells against condition?

jgruberman

New Member
Joined
Jan 15, 2024
Messages
16
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hello,

I am looking to check a table of sports team names, times and ranking and if their ranking is 3 or lower and their game time is 9pm or later, to flag them somehow, perhaps with another cell with a yes/no or just any sort of identifier that the team fits the specified criteria. Here is an excerpt:

2/49:45 PMWarriors D1Bulldogs D1D1Valley Ranch StarCenterGreen15
2/43:30 PMGRITR D2Fighting Squids D2D2Valley Ranch StarCenterHitchcock54
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
yes it should be yes so check the time is not text and 3 is not text

as asked a few times now - is this a google sheet question ????
 
Upvote 0
Yes, this is for Google Sheets. Previously I posted in the wrong forum and an admin moved the question to this one. I double checked the forum description and it says this is for Google Sheets. I apologize, I don't understand why it matters... did I not post it in the correct forum again? I was almost certain that I did....
 
Upvote 0
I don't understand why it matters.
because google uses different functions from excel - and its my mistake i did not see the forum you where in
so i will not be able to help any further and unsubscribe from more answers
as i say - sorry about that
 
Upvote 0
By the way, are you trying to do this in Excel or Google Sheets?
I ask because I see that your previous question was for Google Sheets, and you posted this to the "General Discussion & Other Applications" forum.
Yes this is for Sheets, that's why I posted it in the forum that says "This is also the place to ask about other spreadsheet programs (e.g. Google Sheets)". My first question I asked in the wrong forum but a mod moved it to the correct one I believe.
 
Upvote 0
because google uses different functions from excel - and its my mistake i did not see the forum you where in
so i will not be able to help any further and unsubscribe from more answers
as i say - sorry about that
So the formula will not work?
 
Upvote 0
I dont know , as i have never used google sheets - I suspect as its a basic IF () and timevalue logic tests
I have just used google sheets and tried
it works OK

not sure how to save the file in google sheets so i can keep the share for you to see, or anyone searching in future

you can see true - usingthis formula
=and(B2>TIMEVALUE("21:00"),I2<=3)


2/421:45Warriors D1Bulldogs D1D1Valley Ranch StarCenterGreen15FALSE
2/422:00GRITR D2Fighting Squids D2D2Valley Ranch StarCenterHitchcock53TRUE
 
Upvote 0
Yes this is for Sheets, that's why I posted it in the forum that says "This is also the place to ask about other spreadsheet programs (e.g. Google Sheets)".
It would also help if you clearly stated what your were using in the original question.
 
Upvote 0
It would also help if you clearly stated what your were using in the original question.
I apologize, I assumed that if I wasn't posting in the Excel specific forum that it implied I was using Sheets. That was my mistake.
 
Upvote 0
I dont know , as i have never used google sheets - I suspect as its a basic IF () and timevalue logic tests
I have just used google sheets and tried
it works OK

not sure how to save the file in google sheets so i can keep the share for you to see, or anyone searching in future

you can see true - usingthis formula
=and(B2>TIMEVALUE("21:00"),I2<=3)


2/421:45Warriors D1Bulldogs D1D1Valley Ranch StarCenterGreen15FALSE
2/422:00GRITR D2Fighting Squids D2D2Valley Ranch StarCenterHitchcock53TRUE
It still is not working, I have a feeling that it is because I2 is not a static value, but a formula itself: "=SUMPRODUCT((preftable!$B$1:$F$1)*(preftable!$B$2:$F$36=H19)*(preftable!$A$2:$A$36=F19))". I am not sure how to read the output value in the cell, but I am guessing this is why
 
Upvote 0

Forum statistics

Threads
1,223,927
Messages
6,175,437
Members
452,641
Latest member
Arcaila

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