Formula Issue

bamaisgreat

Well-known Member
Joined
Jan 23, 2012
Messages
794
I have the following formula im having a little trouble with.

=(C12&" "&D12&"x "&E12&" "&F12)

C12 is formatted as Fractional and D12 is formatted as Short Date. They are showing up as numbers in a decimal. Is there a way to have the format called out for each cell in the formula.
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Jon von der Heyden

MrExcel MVP, Moderator
Joined
Apr 6, 2004
Messages
10,798
Office Version
365
Platform
Windows
Something like:

=TEXT(C12,"# ?/?")&" "&TEXT(D12,"dd/mm/yyyy")&"x "&E12&" "&F12

Adjust formats to suit.
 

bamaisgreat

Well-known Member
Joined
Jan 23, 2012
Messages
794
Thanks for the help. One more question. If there is no data in some of these cells how can I get those not to show up?
 

Jon von der Heyden

MrExcel MVP, Moderator
Joined
Apr 6, 2004
Messages
10,798
Office Version
365
Platform
Windows
Try:

=IF(LEN(C12),TEXT(C12,"# ?/?")&" ","")&IF(LEN(D12),TEXT(D12,"dd/mm/yyyy")&"x ","")&E12&" "&F12
 

Watch MrExcel Video

Forum statistics

Threads
1,099,891
Messages
5,471,321
Members
406,757
Latest member
dizzane

This Week's Hot Topics

Top