IF statement with two possible outputs
Hi there,
I'm trying to populate a cell/column with a couple scenarios:
Column names: "Region/Country", "Wine", "Vintage", and "For copy-paste"
If the Region/Country = "Champagne", then the "For copy-paste" cell should populate with Region/Country + Wine + Vintage.
If the Region/Country is anything but Champagne, then the "For copy-paste" cell should be simply Wine + Vintage.
Please help! Thanks so much.
Answers
-
If the Region/Country is Champagne, and lets say the wine and Vintage are "1"
this formula will display: Champagne-1-1
=IF(HAS([Region/Country]@row, "Champagne"), [Region/Country]@row + "-" + Wine@row + "-" + Vintage@row, Wine@row + "-" + Vintage@row)
You can edit the "-" to whatever you like to fit how you want it to read. Such as changing them to "/" to read: Champagne/1/1. Removing the - but leaving a space " " will display: Champagne 1 1
-
That worked like a charm! Thank you so much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!