Combining 2 formulas into 1 cell

mibarron

New Member
Joined
Feb 14, 2018
Messages
7
Hello,
Long time viewer of this site, first time poster. I'm not sure if this is possible, but is there a way to combine these two formulas into one?

=IFERROR(LEFT(D2,FIND(" ",D2)-1),D2)
=IF(LEN(D2)>9,LEFT(D2,LEN(D2)-20),D2)

Both work great individually, but I really need to combine them. I just can't seem to make it work. Thank you in advance for your help!!
 
It looks like the macro work for the ones with 2 or more capitalized words, but not for the ones that are singles. It's pulling back #Value . Is there a way to tweak the formula to pull in the single words as well?

[TABLE="width: 414"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD] MS REG [/TD]
[TD]MS REG[/TD]
[/TR]
[TR]
[TD] GAMESC [/TD]
[TD="align: center"]#Value ![/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top