If Statement
Hi Team,
Can anyone help me how to write this condition In Smartsheet
Thanks
Best Answer
-
That is just a sheet that I use for random testing. I have already deleted the data to make room for other things I wanted to test.
It is set up the same way you have your screenshots where Price and Fruit are in different columns and then you have a third column for where the formula goes. Then I set up the table the same way you have in your first screenshot. All of it is on the same sheet since that is what you indicated as well.
What is it that you need further clarification on?
Answers
-
Are you able to provide more details? Are you trying to populate the A, B, and C columns, or are you trying to reference the table to pull values based on "Apple" and "A" being entered?
-
THanks for your quick response
So, Its should be
if Fruits= "Apple", Price ="A", "H" , if Fruits= "Apple" , Price="B","H", Fruit ="Apple" ,Price ="C","L"
Like this..
-
Is this table on the same sheet as the data you are evaluating, and are "Fruit" and "Price" separate columns on the data sheet?
-
Its on the same Sheet and 'Fruit and 'Price are separate columns
We have to bring the output on Logic column
-
For a sheet that looks something like this:
The formula would be:
=INDEX($A$2:$C$4, MATCH(Fruit@row, [Table Fruit]$2:[Table Fruit]$4, 0), MATCH(Price@row, A$1:C$1, 0))
-
-
The cell in the second row of Column A through the cell in the fourth row of Column C. Basically the portion of the grid that contains the H, M, and L data.
-
-
That is just a sheet that I use for random testing. I have already deleted the data to make room for other things I wanted to test.
It is set up the same way you have your screenshots where Price and Fruit are in different columns and then you have a third column for where the formula goes. Then I set up the table the same way you have in your first screenshot. All of it is on the same sheet since that is what you indicated as well.
What is it that you need further clarification on?
-
Thanks @Paul Newcome
-
how to autopopulate this formula for below cell...
-
AS long as there are at least two rows above and/or below the new row, the formula should auto-fill once data has been entered into the Primary Column.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 455 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!