I'm so close... Concatenating a date and adding 30 days

MrBurn5

New Member
Joined
Jul 4, 2016
Messages
48
(Why is my forum tools add on making the data look like this? Am I using an old version?)

This is even mission critical, I just want to do it on my invoices because it can be done.

I currently just manually add 30 days to the invoice date, then use the last four digits of the customers phone number to generate the invoice numbers.

The phone number is in A13, invoice date is in B15, the result I want is in C15, the closest I can get is the test in cell E14.

(sorry again for the way this looks, if someone can direct me to a better add on I'd appreciate it.)


A
B
C
D
E
13
513.671.1111
14
Order Date
Invoice Date
Invoice Number
=SUBSTITUTE(CONCATENATE(B15,RIGHT(A13,4)),"/","")
15
07/02/18​
07/13/18​
0812181111​

<tbody>
</tbody>
Sheet: Sheet1

<tbody>
</tbody>
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Why is my forum tools add on making the data look like this? Am I using an old version?
Looks like it.
You can find newer versions if you follow the link in my signature.

Are your dates real dates or text that look like dates?
 
Upvote 0
the closest I can get is the test in cell E14.

What does this mean?

Try this: =CONCAT(RIGHT(A13,4),"--",TEXT(B15+30,"MM/DD/YYYY"))

This uses a phone format like: ###-###-#### and a date format as it shows MM/DD/YYYY if you need to change these then just make sure that the RIGHT() function gets you want you want.

Also, The TEXT() function takes the value in B15 addes30 and then format the answer as a date in the format given.

Hope this helps.
 
Last edited:
Upvote 0
What does this mean?

Try this: =CONCAT(RIGHT(A13,4),"--",TEXT(B15+30,"MM/DD/YYYY"))

That was my version of forum tools not working correctly. Here's what apparently got cut off from cell E14: =CONCATENATE(SUBSTITUTE(B15,"/",""),RIGHT(A13,4))
 
Upvote 0
Judging by your formula, it looks like the dates are text, in which case try
=TEXT(DATEVALUE(B15)+30,"mmddyy")&RIGHT(A13,4)
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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