Formula for a checkbox when 2 criteria are met
Hello, I've been trying to figure out how to do this and need some help. I have two sheets:
I want to make the checkbox true when:
- case ID FF matches a case ID SE
- AND if the caseID SE has the date column filled in (anything except blank)
- if the date column is a blank, then the checkbox should be unchecked
So far I can generate a formula asking to search for a matching caseID between both sheets.
=IF(COUNTIF({Case ID SE}, [Case ID FF]@row) > 0, 1, 0)
I tried adding on an AND to the end of the formula but it returns as unparseable.
Any help is appreciated, thanks!
Answers
-
If you want to use an And statement then you'll need to add it before the first statement and separate it by a comma like this.
IF(AND(logical statement 1, Logical statement 2), "THEN THIS", "Else THis")
Does that make sense?
-
I'm not sure how to apply that to what I need the formula to do.
I need it to find matching rows between case ID FF and case ID SE. Then only be checking the box if the matching case have a date in the other column in the SE sheet.
-
I think the way I would tackle it is to do a vlookup in the FF sheet in a new column and pull over the SE date if one exists. You could store the SE date on the FF sheet. Then you could just do the checkbox automation based on if the date is populated on the FF sheet - which would be referencing the SE sheet. Does that make sense?
Here's how to write a vlookup function:
-
@Mike Wilday Have you got an example of your explanation? as I am trying to move data from one sheet to another if a box is ticked however getting no where....
your help and time would be appreciated :)
-
You can collect data from another sheet (or within the same sheet) using vlookup.
Say you have a vendor column in your primary sheet and you want to pull their phone number from a vendor info sheet into your primary sheet. The Vendor Info sheet has the following columns Vendor Name, Address, Phone Number columns.
Use = Vlookup(Vendor@row, [insert cross sheet reference], 3, false) in a new column on your sheet.
That would search for whatever is in the vendor column at that row in your primary sheet and match it to your vendor info sheet, and then it would pull column 3 (your phone number) and return it in your formula.
To initiate a cross-sheet reference for after the vendor@row part, you would click on Reference another sheet as indicated below.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!