Array formulas
Hi,
I was looking for using array formula functionality in smart sheet.
I need this because i saw that like this i can full fill what i need.
Any case, could you please mention if is a way to use array or other solutions in order to perform:
- I want smart sheet to show me in a column date, the first date, closest that will happen in the future.
(in my example i used MIN(date) but is not ok)
- I want that where the Status will change to "Done", smart sheet not to take care about that date, and to show me the next closest date. That will be my next D-day to take care of it.
Would be wonderful and appreciate a lot your support in this.
Thank you!
Costinel
Comments
-
Are you trying to pull the nearest date for the tasks that are marked as "In Progress"?
-
@Paul Newcome I have a similar question. If from the example above, I need to pull the nearest dated for the tasks marked "In Progress", how should the formula be written?
And if I change the D-day to % Completed, wanting to pull the least percentage to the highest percentage with tasks marked "In Progress", how should it be?
Appreciate your assistance and input.
-
@Vivien Chong I'm not sure I follow. By "nearest date" do you mean the closest date AFTER today, or just any date that is closest to today?
Then I am not sure exactly what kind of end result you are looking for with the percentages.
Are you able to mock up some example data and then manually enter the end result so I can see what we are working towards?
-
This is a better scenario.
A base sheet containing the following: (M1, M2, E1, E2 being the job band)
Another reference sheet is as follows:
What formula can we use to pull the "Training need to attend" in the reference sheet?
Appreciate your assistance. Thanks.
-
To make sure I am clear...
You want to manually enter "E1" and "Production" then have it pull from the [Training] column on the 1st sheet based on the checkboxes?
-
@Paul Newcome yes, you are right.
There will be a base sheet containing all departments and job band with the associated job training that they will need to attend.
So the HR team wanted to show the list of training that they should plan for new staff.
Also, these trainings will be tabulated individually to know how many training has been conducted.
At the moment, this is the best way, moving on from Excel, to get it going soonest. Previously in Excel, they are using array formula.
I am also wondering if the data structure structure is correct and able to achieve the desired results.
Appreciate your expertise in working out how we can work around the array formula here.
Thanks Paul.
-
Ok. This is going to take a little bit of working/testing, and I have been rather busy lately. I will work on it when I can and then let you know as soon as I am able to provide some sort of solution. I have some ideas. I just need to figure out the details.
-
Thanks @Paul Newcome . It is good that you have some ideas. I am totally lost. haha.... Take your time. Hear from you again. Have a blessed day!
-
Ok. So if you are ok with the training needed listing being in the same cell (we can use a line break and wrap text), then we should be able to use a single helper column on the reference sheet.
Make this helper column a text/number type column and use the following formula:
=Dept@row + "," + JOIN(COLLECT($[M1]$1:$[E2]$1, $[M1]@row:$[E2]@row, 1), ",")
Then in the working sheet I used "ColumnA" as the working column name since I can't see your column names in the screenshots. The formula would look like this...
=JOIN(COLLECT({Reference Table Training}, {Reference Table Helper}, AND(CONTAINS(ColumnA3, @cell), CONTAINS(ColumnA4, @cell))), CHAR(10))
So the reference sheet would look like this:
And the working sheet:
-
@Paul Newcome thanks for the insight. will test this out.
For this formula, what does the CHAR(10) at the end means?
=JOIN(COLLECT({Reference Table Training}, {Reference Table Helper}, AND(CONTAINS(ColumnA3, @cell), CONTAINS(ColumnA4, @cell))), CHAR(10))
-
CHAR(10) is used to add a line break.
More info.
I hope that helps!
Be safe and have a fantastic week!
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.
-
Yes. CHAR(10) is a line break. It isn't EXACTLY how you had it in your screenshot where each piece is pulled into its own cell, but when you enable text wrapping on the cell it appears that way.
If you do in fact need it parsed so that each piece is in its own cell, that is possible, but will require a little more complexity and a few more questions.
-
Thanks @Andrée Starå & @Paul Newcome . I learn something new today: CHAR.
Have a blessed day!
-
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.
-
Happy to 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
- 141 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!