How can I make COUNTIF into a column formula?
I have been using a COUNTIF formula that I am unable to convert to a column formula. Is there a way that I can alter it so it can be a column formula? This is what I have:
And this is the message that pops up when I try to convert it to a column formula:
I like the current formula because it allows me to set up my Request ID like this:
Whereas, changing the formula to this =COUNTIF([LPS Function]:[LPS Function], "Content Management"), makes my Request ID's look like this:
I want to be able to use the formula that I currently have and be able to convert it to a column formula. With the way it currently is, I have to drag the formula down with every submission. There has to be a way or a workaround to fix this. I've looked at other topics/questions and can't seem to find anything that will help this issue. Any help would be greatly appreciated!
Best Answer
-
I feel your pain - I'm a big fan of using the same technique in Excel and finding a work around was a big priority for me. Luckily, I've got one for you!
First, you'll need to add some kind of counter column - search for any answer that includes "row@row" and you'll find different ways to do it. Once you've got that, you can change your countif to a countifs and do this:
=countifs(LPS Function]:[LPS Function], "Content Management",row:row,<= row@row)
Basically ends up doing the same thing but fits inside of the fairly draconian column formula rules.
Answers
-
I feel your pain - I'm a big fan of using the same technique in Excel and finding a work around was a big priority for me. Luckily, I've got one for you!
First, you'll need to add some kind of counter column - search for any answer that includes "row@row" and you'll find different ways to do it. Once you've got that, you can change your countif to a countifs and do this:
=countifs(LPS Function]:[LPS Function], "Content Management",row:row,<= row@row)
Basically ends up doing the same thing but fits inside of the fairly draconian column formula rules.
-
Hey @Kelsee Katsanes!
Here's the snip from "Create and Edit Column formulas" indicating if column formulas support the reference type:
Unfortunately because it has an absolute reference, it doesn't appear this can be converted to a column formula. My next suggestion was to maybe create a workflow that changes the cell value to the formula, but it looks like the automation wraps the formula in '', which isn't helpful!
It does look like if you insert a row between two cells that have the formula, it does appear the formula stays in the column in the new row, so maybe look at doing something like that?
If my response was helpful in any way (or answered your question) please be sure to upvote it, mark it as awesome, or mark it as the accepted answer!
I'm always looking to connect with other industry professionals, feel free to connect with me on LinkedIn as well!
-
Can you show me what you mean by the counter column?
-
@Kelsee Katsanes sure - check out @Paul Newcome's answer here on how to make a "row" column:
Add that to your sheet and the formula I wrote should work for you :).
-
It worked!! Thank you thank!!!
-
Glad I could help :).
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!