Ignoring blank cells with INDEX and COUNT
Hello,
I had some fantastic help from Andree with the first part of my sheet, but i'm having trouble to get the below formula to ignore any blank cell in the column. I've tried ISBLANK.....but I cant get it to work...
=INDEX([Generator Location]:[Generator Location], COUNT([Generator Location]:[Generator Location]))
Hope some one can help.
Thanks.
Comments
-
Hi Craig,
Thanks for the kind words!
That is tricky. I'll get back to you if I solve it. Do you have to reference the whole column?
Have a fantastic week!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
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.
-
What about using some sort of Row ID to match against? Without screenshots I can't be sure, but it seems like you are looking down a column for the lowest entry.
If that's the case, a row ID could be used in a MAX/COLLECT as the "text_to_search_for" portion within a MATCH function.
=INDEX([Generator Location]:[Generator Location], MATCH(MAX(COLLECT([Row ID]:[Row ID], [Generator Location]:[Generator Location], ISTEXT(@cell)), [Row ID]:[Row ID], 0))
-
Hello Andree,
Thank you for your help again.
I do need to reference the whole column because the information comes through via form, so new rows are constantly added. I tried limiting to a batch of rows within the column, but it always misses the new data.
I keep going back to it, but its a tricky one to solve!
Thank you again.
-
Hi Paul,
That's exactly what I'm trying to do. I have a document that my staff fill out for a particular piece of equipment. I'm trying to get the latest location of that piece of equipment so I can track their whereabouts.
I have just given your formula a go and it came up with #INCORRECT ARGUMENT SET....I definitely think you're on the right lines, I've been playing with something similar, but I keep coming up with errors.
The original code I posted works as long as there is information in every cell of that column, but if there are blanks, it seems to stall on the blank cell. So that's why I'm trying to adapt that formula to ignore the blank cells, or do how you say with a row ID....
Thanks again.
-
There was an error (one parenthesis was missing after @cell) in Pauls formula.
@Paul. Nice work with the formula!
Try something like this.
=INDEX([Generator Location]:[Generator Location]; MATCH(MAX(COLLECT([Row ID]:[Row ID]; [Generator Location]:[Generator Location]; ISTEXT(@cell))); [Row ID]:[Row ID]; 0))
The same version but with the below changes for your and others convenience.
=INDEX([Generator Location]:[Generator Location], MATCH(MAX(COLLECT([Row ID]:[Row ID], [Generator Location]:[Generator Location], ISTEXT(@cell))), [Row ID]:[Row ID], 0))
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
Did it work?
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.
-
Andree,
Good catch. Thanks. Those parenthesis have been getting me lately. I'll blame it on the recent coffee brand change. Hahaha.
-
You're welcome!
They have been messing with me as well lately, but I had a serious talk with them, and now they will behave!
I blame it on the squirrels!
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.
-
Speaking of squirrels...
I assume you've seen the new functions? It's in the Smartsheet Formula Examples template in the solution center. They've built in a filter to show all of the new ones. I had a total "nerd moment" reading through them. Haha
-
I saw them yesterday in the function list but did not think about the formula example sheet-
Thanks!
Time to get busy!
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.
-
I never think about the functions listing. I always use the template. Haha. I guess the functions list would be a better reference though because there is no telling how outdated my sheet from the template really is.
But yes. Definitely time to get busy. Haha
-
24 new functions
Performance enhancements!
Formulas in contact columns! Wow!
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.
-
Hello Andree and Paul...
Thank you both! That works perfectly!!
Oooo I'm now off to look at these 24 new functions too.....
Thank you again.
-
Hi Craig,
Excellent!
Glad that we got it working!
Have fun with the new functions!
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.
-
Haha. Happy to help, Craig!
Welcome to the Community, where the only ones who actually know what's going on are the highly caffeinated squirrels chasing laser pointers through your brain.
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives