Nested If?

Philatelist

New Member
Joined
Jan 24, 2023
Messages
8
Office Version
  1. 2013
Platform
  1. Windows
Hi Guys, I have an application with a max cell entry of 250 characters.

If cell BA2 has a string with more than 250 characters, I need it shortening to 200 and the phrase "......details below" (without apostrophies) adding to the end, otherwise, if less than 250, just the string .

So far I have:

=IF(LEN(BA2>250),LEFT(BA2,200)&(AZ10)),BA2 (Where AZ10 = ".....details below")

No matter how many characters the cell contains, I cannot get the formula to stop the additional text appearing if less than 200.

Please help!

TIA
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Maybe like this

=IF(LEN(BA2)>250,LEFT(BA2,200)&AZ10,BA2)
 
Upvote 1
Solution
@Philatelist in future please mark the post that contains the solution, not your post saying it works. Thanks
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,108
Members
452,302
Latest member
TaMere

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