Index Match(Or Collect) with IF, LEFT, and LEN
I need help combining 2 formulas that currently work on their own but I need them to work together.
SHEET 1 - IMPORT SHEET (Data comes in as "100h")
I can do the following to get the results I want.
=if([Column1@row]="",0, LEFT([Column1@row], LEN([Column1@row] - 1))
I get a 0 if Blank or the "100" without the "h"
SHEET 2 (Bring hours over to another sheet)
=INDEX({Sheet 1 - Hours}, MATCH([Project ID]@row, {Sheet 1 - ID},0))
I can get the Data in as 100h no problem. But I want it to come over as 100.
I do not wish to have a helper column ( long story) also ALOT OF Helper Columns would be needed. (52+)
Any help would be great.
Joe Goetschel | Associate Director, Smartsheet
CrossCountry Consulting - Smartsheet Partner
"The only real limitation of Smartsheet is the level of effort required to achieve your goal."
Answers
-
The easiest way to do this is to copy your INDEX/MATCH without the = in the beginning, then highlight [Column1]@row and paste.
=if(paste_here = "", 0, LEFT(paste_here, LEN(paste_here) - 1))
If it is ALWYS going to be the letter "h", you can also use a SUBSTITUTE function instead of the LEFT/LEN combo.
-
In this case, it will always be "h" can you show me what that would look like?
Joe Goetschel | Associate Director, Smartsheet
CrossCountry Consulting - Smartsheet Partner
"The only real limitation of Smartsheet is the level of effort required to achieve your goal."
-
=if(paste_here = "", 0, SUBSTITUTE(paste_here, "h", ""))
It isn't really that much different/shorter, but it is one less function for the sheet to have to process on the back-end.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!