Custom Formatting or Formula Help?

mishdo1

New Member
Joined
Sep 20, 2006
Messages
19
Okay, anyone got a recommendation on perhaps a custom format that will allow you to utilize a concatenate formula to pull in a date and title of something and the date appear as a date?

I am essentially creating a primary key that I want to user to be able to recognize as a current activity. I want to utilize the Date as the primary factor in the naming. So right now I have the formula pointed to a column with a activity date that will be referenced. However, when the result returns excel is formatting date into a numeric value and not date format.

Example Formula = =IF((B2 = ""),"",CONCATENATE(I2," - ",B2))
- I2 is the Activity Date
- B2 is Customer Name

Result = 40855 - TE Enterprise
 

Some videos you may like

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

snoopyhr

Active Member
Joined
Aug 12, 2002
Messages
395
Is this what you are after?

Excel Workbook
ABCDEFGHIJ
1Example Formula = =IF((B2 = ""),"",CONCATENATE(I2," - ",B2))*********
2- I2 is the Activity Date*********
3- B2 is Customer Name*********
4**********
5Result = 40855 - TE Enterprise*********
6*Customer******Activity date*
7*Cust-1******11/24/201140871 - Cust-1
8*Cust-2******11/5/201140852 - Cust-2
9*Cust-3******11/14/201140861 - Cust-3
10*Cust-4******11/10/201140857 - Cust-4
11********11/27/2011*
12********11/3/2011*
13*Cust-5******11/20/201140867 - Cust-5
14*Cust-6******11/3/201140850 - Cust-6
15*Cust-7******11/25/201140872 - Cust-7
16*Cust-8******11/23/201140870 - Cust-8
Sheet2
 

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
4,723
Office Version
  1. 365
Platform
  1. Windows
=IF((B2 = ""),"",CONCATENATE(TEXT(I2,"mm/dd/yyy")," - ",B2))
 

Tom Urtis

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,225

ADVERTISEMENT

=if(i2,text(i2,"mm/dd/yy")&" - " &b2,"")
 

Watch MrExcel Video

Forum statistics

Threads
1,123,270
Messages
5,600,637
Members
414,398
Latest member
dhune

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
Top