Formula Modify

Rubber Beaked Woodpecker

Board Regular
Joined
Aug 30, 2015
Messages
203
Office Version
  1. 2021
In D84 I have the following formula;

=IF(AND((100-$A83)>=D$141),"",IFERROR(INDEX(29:29,AGGREGATE(14,6,COLUMN($D70:$XFD70)/($D70:$XFD70<>""),COLUMNS($D$2:D$13))),""))

It normally returns data in the following format;

Aisle1 4th Mar - 14:10 Middle Left

Is there a way to modify the original formula so only the following is returned?

4th Mar - 14:10

Many thanks,

RBW
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Can you use the xl2bb add in and post a mini worksheet of your data? Link is below.
But try:
=Mid(D84, Find(" ",D84)+2), 17)
that will work assuming you have the day as only 3 digits, the hour has leading zeros.
 
Upvote 0
@Rubber Beaked Woodpecker
If you have consistency of day, date, time format then maybe focus on the "-" similar to the below.
You can substitute the D84 cell reference with your original formula.

Book2
DE
84Aisle1 4th Mar - 14:10 Middle Left4th Mar - 14:10
85Aisle6 1st Mar - 14:10 Middle Right1st Mar - 14:10
86Aisle 99 14th Jun - 15:15 Center14th Jun - 15:15
Sheet3
Cell Formulas
RangeFormula
E84:E86E84=TRIM(MID(D84,FIND("-",D84)-9,17))

Hope that helps.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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