If/countif returns incorrect arguement
So I'm using the following formula and getting errors.
=IF(COUNTIF([ID Dump]:[ID]), "CURRENT", "NEEDS")
Basically, I'm trying to get a return of CURRENT if any of the values in the "ID DUMP" column are in the "ID" column, and then a NEEDS if the number in the "ID DUMP" is missing.
I used the following formula in excel and it worked successfully.
=IF(COUNTIF(X:X,A:A),"CURRENT","NEEDS")
Best Answer
-
For the Status column you would need to either automate all of the options or leave all options manual entry. If there is a formula in a cell and then it gets manually changed then the formula will be erased. Selecting from a dropdown is the same in that regards as typing.
Answers
-
Wrote in wrong post 🤣
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
The easiest way to do this in Smartsheet would be to add in a helper column that will check a box on each row if the ID Dump column is found in the ID column.
In the checkbox column:
=CONTAINS([ID Dump]@row, ID:ID)
Then you can use your IF statement to evaluate the Helper column.
-
I tried that, but the checkboxes are not reacting. Also tried to use the following formula for the checkboxes, but that didn't do anything either.
=IF(CONTAINS([ID Dump]@row, [ID]:[ID]), 1, 0)
-
Hi @Jared Ross
Strange!
That should work.
Can you describe your process in more detail and maybe share the sheet(s)/copies of the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@getdone.se)
I hope that helps!
Be safe and have a fantastic day!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Are your ID's all numbers?
If so, try a FIND function instead. CONTAINS can get a little weird when dealing with numerical values.=IF(FIND([ID Dump]@row, [ID]:[ID])> 0, 1, 0)ABOVE SOLUTION DOES NOT WORK
Try this one...
=IF(COUNTIFS(ID:ID, [ID Dump]@row) > 0, 1)
-
Paul, that one seems to have done the job. I've realized an overlooked issue though. Blank cells in the ID dump are coming up as checked. Any way to have the formula continue as before, but exclude blank cells?
-
Try this...
=IF(AND([ID Dump]@row <> "", COUNTIFS(ID:ID, [ID Dump]@row) > 0), 1)
-
Just noticed switching the ID Dump and ID solved it.
Only other issue now is how would I reference the checkboxes as originally suggested? IE - if the checkbox is checked, I need my "status" column to automatically select "CURRENT" from the dropdown list.
-
For the Status column you would need to either automate all of the options or leave all options manual entry. If there is a formula in a cell and then it gets manually changed then the formula will be erased. Selecting from a dropdown is the same in that regards as typing.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!