A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

record dozens and singles in same cell and sum them?



 
 
Thread Tools Display Modes
  #1  
Old December 9th, 2008, 09:20 PM posted to microsoft.public.excel.misc
Calculating Dozens
external usenet poster
 
Posts: 1
Default record dozens and singles in same cell and sum them?

I would like to record dozens and single units in single cells with a view to
using them in calculations. E.G. stock sheet -

12,4 in one cell added to 10,2 in another cell resulting with an answer 0f

22,6 in a third cell with the 22 representing 22 dozen items and the 6
representing 6 single items.
  #2  
Old December 9th, 2008, 09:55 PM posted to microsoft.public.excel.misc
Mike H
external usenet poster
 
Posts: 8,419
Default record dozens and singles in same cell and sum them?

Hi,

With your 2 numbers in a1.B1 try this

=(LEFT(A1,FIND(",",A1)-1))+LEFT(B1,FIND(",",B1)-1)&","&MID(A1,FIND(",",A1)+1,LEN(A1))+MID(B1,FIND( ",",B1)+1,LEN(B1))

Mike

"Calculating Dozens" wrote:

I would like to record dozens and single units in single cells with a view to
using them in calculations. E.G. stock sheet -

12,4 in one cell added to 10,2 in another cell resulting with an answer 0f

22,6 in a third cell with the 22 representing 22 dozen items and the 6
representing 6 single items.

  #3  
Old December 10th, 2008, 02:25 AM posted to microsoft.public.excel.misc
dhstein
external usenet poster
 
Posts: 665
Default record dozens and singles in same cell and sum them?



"Calculating Dozens" wrote:

I would like to record dozens and single units in single cells with a view to
using them in calculations. E.G. stock sheet -

12,4 in one cell added to 10,2 in another cell resulting with an answer 0f

22,6 in a third cell with the 22 representing 22 dozen items and the 6
representing 6 single items.


You could also use the trick of separating the two numbers with a decimal
point. Use a very large number of places to avoid overflow. So for example
the numbers could be 12.000004 and 10.000002 adding them gives 22.000006
The numbers can also be separated very easily using the =int function
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.