Skip to main content
Solved

How to Split the text of the description

  • August 1, 2024
  • 1 reply
  • 52 views

Forum|alt.badge.img

I want to split the description as below.

“Video Conference-Non stock” item.

I am not sure as to how do I split this or get data to the left of ‘-’

I did try using the Instr and Strrev function to no avail.

Can I please receive some suggestions on this.

 

 

Best answer by nhatnghetinh

Hi @amitkaryekar 

Please use InStr( str, findStr ) and Left( str, length ) combined with IIF function.

For example:

= IIf( InStr( [InventoryItem.Descr], '-' ) > 0 
    , Left( [InventoryItem.Descr], InStr( [InventoryItem.Descr], '-' ) )
    , [InventoryItem.Descr] )
 

 

Best Regards,

NNT

View original
Did this topic help you find an answer to your question?

1 reply

nhatnghetinh
Captain II
Forum|alt.badge.img+11
  • Captain II
  • 566 replies
  • Answer
  • August 1, 2024

Hi @amitkaryekar 

Please use InStr( str, findStr ) and Left( str, length ) combined with IIF function.

For example:

= IIf( InStr( [InventoryItem.Descr], '-' ) > 0 
    , Left( [InventoryItem.Descr], InStr( [InventoryItem.Descr], '-' ) )
    , [InventoryItem.Descr] )
 

 

Best Regards,

NNT


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings