Skip to main content
Question

Extract Everything Left of 3rd Underscore from Right

  • October 16, 2024
  • 0 replies
  • 39 views

Forum|alt.badge.img+2

Hello all,

I am working on building a formula that will extract everything left of the 3rd underscore from the right.

 

Sample date: 139_EDWARDS_DR_NW_VIENNA_VA_20176

Desired result: 139_EDWARDS_DR_NW

I have tried variations of Part, Left, NotLeft, Right, NotRight, Find and just can't seem to figure it out.  Anyone have a solution?

MarkShnierYou
Forum|alt.badge.img+24

This tests OK for me.

NotRight(NotRight(NotRight([My Underscored String],"_"),"_"),"_")