output data from another reference sheet
I need help in generating a formula for this scenario, please.
Our purchase requisitions have to be approved by multiple persons and since we have over 662 department codes it will be awesome if Smartsheet can match the approvers with the department codes and the approval sequence.
I need help in generating a formula for this scenario, please.
when the Department code in the Requisition Sheet changes to Dept Code xxxx , then find and reference sheet Approval Tracks to output the approver name for approver sequence 1 to the Approver 1 column.
Requisition Sheet:
Approval tracks sheet
Best Answer
-
You would use an IFERROR statement.
=IFERROR(original_formula, "")
Answers
-
If my understanding is correct you can do something like this for Approver 1 column
=INDEX(COLLECT({Approved by}, {Department}, [Department code]@row, {Approval Sequence}, 1, 0))
for Approver 2 column
=INDEX(COLLECT({Approved by}, {Department}, [Department code]@row, {Approval Sequence}, 2, 0)) and so on
Parul Mishra
-
#incorrect argument
=INDEX(COLLECT({Approved By}, {Department Code}, [Department Code]@row, {Approval Sequence}, 2, 0))
when I Reference Another Sheet, do I just select the column that contains the data or the whole reference sheet?
-
I select the column containing the data I am pulling/referencing
-
I am still getting #incorrect argument
-
will this formula work even if Department Code is a formula as well?
-
@parulmishra - I get an error message #incorrect argument
Please help
-
It looks like some syntax errors. Try this:
=INDEX(COLLECT({Approved By}, {Department Code}, @cell = [Department Code]@row, {Approval Sequence}, @cell = 2), 1)
You would ONLY change the 2 to 1 or 3 or whichever sequence number. The 1 at the end should stay as 1.
-
thank you so much @Paul Newcome! what do I add to this formula so that if there is no Dept Code in the column instead of getting and #invalid value error message it will just be blank?
-
You would use an IFERROR statement.
=IFERROR(original_formula, "")
-
THANK YOU again!!😇
-
=IFERROR(INDEX(COLLECT({Approved By}, {Department Code}, @cell = [Department Code]@row, {Approval Sequence}, @cell = 3), 1) "") ???
-
@WinaHath good to see the problem got resolved :) for iferror
=IFERROR(INDEX(COLLECT({Approved By}, {Department Code}, @cell = [Department Code]@row, {Approval Sequence}, @cell = 2), 1),"")
Parul Mishra
-
@WinaHath Your last formula looks right to pull in the third in sequence and leave blank if there is none.
-
please help me figure out this formula (I did try but I obviously don't know what I'm doing!)
I want to COLLECT the approver email from another sheet with the following to conditions:
{Approver Email}, {Department Code} = [Dept Code] or [Project Code] and the Approver's {authorized limit} is greater than or equal to 3000 or greater than or equal to 5000
the reference sheet contains the dept code and project code in one column but they are separate columns in the output sheet since the approval tracks differ by departments😟
Thank you!
-
@WinaHath I just noticed that your formula from 7 June is missing a comma there towards the end.
=IFERROR(INDEX(COLLECT({Approved By}, {Department Code}, @cell = [Department Code]@row, {Approval Sequence}, @cell = 3), 1), "")
I am not sure I understand your latest question though. Are you able to provide a screenshot and more details?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!