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
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!