Index & Match Trim Right Question

rex759

Well-known Member
Joined
Nov 8, 2004
Messages
610
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am wondering if I can accomplish what I want to do without adding a helper column. I have the formula in cells I4 to M4 and I9 to M9 showing the Area number from column C if the dates match and there is #2 in Column B. Then in the next row (I5 to M5 and so on), I want to show the event type in column D only if there is #2 in column B. If an extra person is assigned in column F, I want to show that as well. There is where my challenge begins.

I want to shorten the name in Column F showing the last name and whatever letter follows the name in the format of Letter First then the last name. Example is in L11. I added a helper column with a trim, right Substitute formula but wondering if there was a way to do without it.

Audit Ex.xlsx
ABCDEFGHIJKLM
1DateTypeAreaEventPrimaryExtraHelper
210/4/20211111Zoom CallKim 
310/4/20211112Zoom Call 10/4/2110/8/2110/12/2110/13/2110/14/21
410/8/20212115(Audit P)  115117 119
510/12/20211116Zoom Call  P - KimCC Audit P - Kim
610/12/20212117CC Audit 
710/13/20211118Zoom Call 
810/14/20212119(Audit P) 10/15/2110/18/2110/19/2110/20/2110/21/21
910/14/20211120Zoom Call 122 123127 
1010/14/20211121Zoom Call S - Kim S - KimS - Kim Chris Smith (P) 
1110/15/20212122(Audit S) S-Kim, P- Smith
1210/18/202111223 Week Call 
1310/19/20212123(Audit S)  
1410/19/20211124Zoom Call 
1510/20/20212127(Audit S)Chris Smith (P)Smith
Sheet3
Cell Formulas
RangeFormula
I9:M9,I4:M4I4=IFERROR(INDEX($C$2:$C$15,MATCH(1,INDEX((I3=$A$2:$A$15)*(2=$B$2:$B$15),0),0)),"")
I5,M5I5=IFERROR(IF(INDEX($D$2:$D$15,MATCH(I4,$C$2:$C$15,0),0)="(Audit P)","P - "&$E$2&" "&INDEX($F$2:$F$15,MATCH(I4,$C$2:$C$15,0),0),IF(INDEX($D$2:$D$15,MATCH(I4,$C$2:$C$15,0),0)="Inventory (Secondary)","S - "&I4&" "&INDEX($F$2:$F$15,MATCH(I4,$C$2:$C$15,0),0),"CC Audit")),"")
J5:L5J5=IFERROR(IF(INDEX($D$2:$D$15,MATCH(J4,$C$2:$C$15,0),0)="(Audit P)","P - "&$E$2&" "&INDEX($F$2:$F$15,MATCH(J4,$C$2:$C$15,0),0),IF(INDEX($D$2:$D$15,MATCH(J4,$C$2:$C$15,0),0)="Inventory (Secondary)","S - "&J4&" "&INDEX($F$2:$F$15,MATCH(J4,$C$2:$C$15,0),0),"CC Audit")),"")
I10:M10I10=IFERROR(IF(INDEX($D$2:$D$15,MATCH(I9,$C$2:$C$15,0),0)="(Audit P)","P - "&$E$2&" "&INDEX($F$2:$F$15,MATCH(I9,$C$2:$C$15,0),0),IF(INDEX($D$2:$D$15,MATCH(I9,$C$2:$C$15,0),0)="(Audit S)","S - "&$E$2&" "&INDEX($F$2:$F$15,MATCH(I9,$C$2:$C$15,0),0),"CC Audit")),"")
L13L13=TRIM(LEFT(RIGHT(" "&SUBSTITUTE(TRIM(I23)," ",REPT(" ",60)),120),60))
G2:G15G2=TRIM(LEFT(RIGHT(" "&SUBSTITUTE(TRIM(F2)," ",REPT(" ",60)),120),60))
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I decided to use the helper column. Thanks anyway
 
Upvote 0
Solution

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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