Search for multiple substrings and return different values
Solved/Closed
jotied
Posts
2
Registration date
Wednesday 9 September 2015
Status
Member
Last seen
9 September 2015
-
9 Sep 2015 à 17:20
jotied Posts 2 Registration date Wednesday 9 September 2015 Status Member Last seen 9 September 2015 - 9 Sep 2015 à 21:24
jotied Posts 2 Registration date Wednesday 9 September 2015 Status Member Last seen 9 September 2015 - 9 Sep 2015 à 21:24
Related:
- Search for multiple substrings and return different values
- How to search for words on websites - Guide
- If cell contains text then return value multiple conditions ✓ - Excel Forum
- Vi search - Guide
- Search baron virus - Guide
- Pinterest search history - Guide
1 response
Mazzaropi
Posts
1985
Registration date
Monday 16 August 2010
Status
Contributor
Last seen
24 May 2023
147
9 Sep 2015 à 20:48
9 Sep 2015 à 20:48
jotied, Good evening.
Try to use:
=IF(ISNUMBER(SEARCH("month",I2)),"Montly",IF(ISNUMBER(SEARCH("year",I2)),"Yearly","Others"))
Is that what you're looking for?
I hope it helps.
--
Belo Horizonte, Brasil.
Marcílio Lobão
Try to use:
=IF(ISNUMBER(SEARCH("month",I2)),"Montly",IF(ISNUMBER(SEARCH("year",I2)),"Yearly","Others"))
Is that what you're looking for?
I hope it helps.
--
Belo Horizonte, Brasil.
Marcílio Lobão
9 Sep 2015 à 21:24
For anyone else out there, I also tweaked the formula a bit to get another value. I have two columns, one with "payment amount- column I" and another with "payment frequency- column V". I was ultimately trying to find the average revenue per user per month. To get that, I just had the formula print the value from V column in case the payment frequency was monthly. If payment frequency was yearly, I had the formula divide the value in V column by 12. See below for example and I hope it helps someone else out.
=IF(ISNUMBER(SEARCH("month",I2)),V2,IF(ISNUMBER(SEARCH("year",I2)),V2/12,"Other"))
p.s. I'm starting the formulas in row 2, thus using 2 on all columns (e.g. I2, V2).