questforexcel
Board Regular
- Joined
- Jan 18, 2019
- Messages
- 128
- Office Version
- 2013
- Platform
- Windows
Hi,
I have two/three or 4 words in cells in my excel file across columns.
I need a formula to pick up the first letter of the word in excel. These words are separated by a space.
There are some cases where there are more words. How do I setup a formula to pick up values after every space or for every new word in that cell? Also each new word is written in proper format, like the the starting letter of the word is in Caps.
I would like the formula, if possible, to check if there are any numeric values in the field, like dates. IF so I would like to not just pick up the first letter but the entire cell value.
How can this be done. I was currently using this formula. =TRIM(LEFT(G13,1)&MID(G13,FIND(" ",G13)*1,2))&TRIM(LEFT(G14,1)&MID(G14,FIND(" ",G14)*1,2))
But had two issues.
1) It generated a space on the second word in the same cell. Meaning if the word was Current Month. The formula generated a space and then M i.e. " M"
2) For Numeric date fields it gave me a #VALUE error due to which, i think my pivot data field cannot be grouped right at the moment.
Could you please guide and help.
Thank you,
I have two/three or 4 words in cells in my excel file across columns.
I need a formula to pick up the first letter of the word in excel. These words are separated by a space.
There are some cases where there are more words. How do I setup a formula to pick up values after every space or for every new word in that cell? Also each new word is written in proper format, like the the starting letter of the word is in Caps.
I would like the formula, if possible, to check if there are any numeric values in the field, like dates. IF so I would like to not just pick up the first letter but the entire cell value.
How can this be done. I was currently using this formula. =TRIM(LEFT(G13,1)&MID(G13,FIND(" ",G13)*1,2))&TRIM(LEFT(G14,1)&MID(G14,FIND(" ",G14)*1,2))
But had two issues.
1) It generated a space on the second word in the same cell. Meaning if the word was Current Month. The formula generated a space and then M i.e. " M"
2) For Numeric date fields it gave me a #VALUE error due to which, i think my pivot data field cannot be grouped right at the moment.
Could you please guide and help.
Thank you,