Pulling specific data from cell

Pizzio

Active Member
Joined
Apr 28, 2005
Messages
275
Most of my invoices look like this: 10009888_O_OP_511_512

I need three formulas. One that would return only the OP; one to pull the 511 and return it with 05/01/11 and one to pull the 512 and return with 05/01/12.

Any Ideas?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
hello pizzio,
since these are invoices, I am going to assume the invoice number is consistant with the placing of characters.

For OP
=MID(A1,SEARCH("OP",A1),2)
For first date
=DATE(20&MID(A1,16,2),MID(A1,15,1),1)
For last date
=DATE(20&RIGHT(A1,2),LEFT(RIGHT(A1,3)),1)

If the invoice is not consistant then you will need more complex formulas.
good luck
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,308
Members
452,904
Latest member
CodeMasterX

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