Formula

I have a sheet that has a supplier number in one cell that is assigned to a supplier in another cell. Can I write a formula so that when the supplier's name is entered in one cell their supplier number automatically populates another cell on the same row?
Answers
-
Yes you can use an INDEX/MATCH or an INDEX/COLLECT formula to do this, for example something like =INDEX(COLLECT({Supplier Number}, {Supplier Name}, [Supplier Name]@row)) should work.
-
@Lesa I would suggest an IDNEX/MATCH like so:
=INDEX({Supplier Number}, MATCH([Supplier Name]@row, {Supplier Name}, 0))
@Adam Murphy You missed the "row number" argument for your INDEX function. Your formula as is will throw an error.
=INDEX(COLLECT({Supplier Number}, {Supplier Name}, [Supplier Name]@row), 1)
-
@Paul Newcome Ah, I was going quickly, my bad. Sorry for the confusion!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.2K Get Help
- 431 Global Discussions
- 152 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 74 Community Job Board
- 501 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 306 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!