Need help with formula. - perhaps wildcard and a mix of indirect?

JDJong

New Member
Joined
May 2, 2018
Messages
39
Hi,

need to automize the description based 3 criteria.
- Personnel number (#3 and #4 are letters short for department)
- Personnel code (random)
- Appointed period

would like to have the description within such format: e.g:Finance_Department_01.01- 01.07.2012_PN_876789 (Indicated in red)

01FI00038987678901.01.2012-01.07.2012FI (fInance department)Finance_Department_01.01- 01.07.2012_PN_876789
01FI000390A2312301.05.2016-01.11.2016FI (fInance department)Finance_Department_01.05- 01.11.2016_PN_A23123
01FI00039176789009.01.2018-09.07.2018FI (fInance department)
02QC00034087878809.01.2018-09.07.2019QC (Quality control)
02QC00034134543409.01.2018-09.07.2020QC (Quality control)
02QC00034287678909.01.2018-09.07.2021QC (Quality control)
03MI00042598987009.01.2018-09.07.2022MI (Maintenance department)
03MI00042667876809.01.2018-09.07.2023MI (Maintenance department)
03MI00042756545609.01.2018-09.07.2024MI (Maintenance department)
10SR00000198989909.01.2018-09.07.2025SR (Senior Management)
10SR00000289898909.01.2018-09.07.2026SR (Senior Management)
10SR00000378787809.01.2018-09.07.2027SR (Senior Management)
11BD000333888989 09.01.2018-09.07.2028BD (Board of Director)
11BD00033499898909.01.2018-09.07.2029BD (Board of Director)
11BD00033565656709.01.2018-09.07.2030BD (Board of Director)

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>

Please provide inputs. Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Why is the year missing from the first date? That doesnt make sense really as many entries cover more than one year.
 
Upvote 0
If it is within the same year, it is not necessary to have the first date entered.

That would make it a much longer formula than this:

=PROPER(SUBSTITUTE(SUBSTITUTE(MID(E1,FIND("(",E1)+1,999),")","")," ","_"))&"_"&C1&"_PN_"&B1
 
Upvote 0
That would make it a much longer formula than this:

=PROPER(SUBSTITUTE(SUBSTITUTE(MID(E1,FIND("(",E1)+1,999),")","")," ","_"))&"_"&C1&"_PN_"&B1


Looks quite advanced ... apologies, the Appointed period (C) are splited into 2 columns : Appointed since and Appointed until.

how should I alter the formula?

Thanks
 
Upvote 0
The bit where it says

&C1&

change to

&C1&"-"&D1&


I have entered the following formula:

=PROPER(SUBSTITUTE(SUBSTITUTE(MID(AF4;FIND("(";AF4)+1,999);")";"");" ";"_"))&"_"&Z4 - AA4&"_PN_"&A4

It says i have entered too many arguements?

anything i add in extra?
 
Upvote 0
Try this:

=PROPER(SUBSTITUTE(SUBSTITUTE(MID(AF4;FIND("(";AF4)+1;999);")";"");" ";"_"))&"_"&Z4&"-"&AA4&"_PN_"&A4
 
Upvote 0

Forum statistics

Threads
1,214,909
Messages
6,122,189
Members
449,072
Latest member
DW Draft

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