Formula with multiple answers

Hello,
Is there a formula for a row that can have multiple answers? I have one column A with names, and depending on that name in column A, I want a different number to appear in column B
For example
If column A=Mary, return 245 or column A=James, return 548โฆ..etc.
I have 5 names with 5 different values associated with them
=IF(or(Forename1 "Mary"), RefNum1, "245", IF(or(Forename1, "James"), RefNum1, "548"), โฆ but keep getting #unparseable
Answers
-
From your description, this sounds like an INDEX/MATCH formula would do the trick if you have that list pre-prepared. For example, if you have one Sheet that has this:
then you can do a lookup against that sheet with this formula:
=INDEX(Return:Return, MATCH(LookupName@row, Forname:Forname, 0))Doing this with a lookup table like this would be a bit more scalable, because then when someone is added to the list you won't have to redo a hard-coded formula.
If you're tied to using the nested IF/OR format, it looks like the syntax for those is a bit off. Check out these links for more on the individual formula syntax:
If this answer resolves your question, please help the Community by marking it as an accepted answer. I'd also be grateful for your response - "Insightful"or "Awesome" reactions are much appreciated. Thanks!
-
Hi Paul,
RefNum1 is reference number -
Hi Kerry,
I tried the index match formula by referencing a separate sheet called Staff Info, which has the staff member's name and reference number, but I can't get it to work.I tried the following:
=INDEX({StaffRefNum:StaffRefNum}, MATCH({StaffName:StaffName},0)2)
=INDEX({StaffRefNum}, MATCH({StaffName},0)2)
=INDEX(StaffRefNum:StaffRefNum, MATCH(StaffName:StaffName,0))
=INDEX({StaffRefNum}:{StaffRefNum}, MATCH({StaffName}:{StaffName},0))
all UNPARSEABLE
=INDEX({StaffRefNum}, MATCH({StaffName}, 0)) - INCORRECT ARGUMENT SET
and
=INDEX({Position Number}, MATCH("{Staff Name}", {Staff Name}, 0)) - NO MATCH
What am I doing wrong?
Thanks
Aimee
-
Try putting an actual name in this one:
=INDEX({Position Number}, MATCH("need something to actually match on here", {Staff Name}, 0))
-
Hello,
I found this - , does Smartsheets support the IFS function?If so could someone tell me where I went wrong with this formula?
=IFS([First Name]@row=Employee1,Number1,[First Name]@row=Employee2,number2,[First Name]@row=Employee3,Number3,[First Name]@row=Employee4,Number4,[First Name]@row=Employee5,Number5,"0") -
-
@Aimee Colton Smartsheet does not support the IFS function. You would need to use a nested IF formula.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!