1) D7 shouldn't change when you change B28 to something else because C28 is "cash" so changing B28 will only change a value in column C above, the "cash" column.
2) The formula is looking at the first 6 characters, so as long as the variations appear AFTER the first 6 characters, they will be considered matches.
3) If the data range changes, be careful as you paste. Change the formulas to use a longer a "default" range of cells, maybe make it B28:B200...that should be sufficient, yes?
Bookmarks