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
- 64.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 61 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!