#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mjc
 
Posts: n/a
Default lbs ounces grams


hi all
please can anyone help me.i'm trying to sort 3 weights in lbs
ounces grams. all i need help with is for excel to pick the two biggest
weights and
add them together and put answer in a5 lbs b5 ounces c5 drams,
sample below.

a1 lbs b1 oz c1 dr
a2 4 7 8
a3 5 8 8
a4 4 8 8

a5 b5 c5
for answer

thanks in advance of a good result,


--
mjc
------------------------------------------------------------------------
mjc's Profile: http://www.excelforum.com/member.php...o&userid=34021
View this thread: http://www.excelforum.com/showthread...hreadid=537826

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mphell0
 
Posts: n/a
Default lbs ounces grams


Put this in A5

=MAX(A2:A4)+LARGE(A2:A4,2)

and then copy to columns B and C.

Note: the 2 in the LARGE function denotes the second largest number.
You
can put 3 for the third largest, 4 for the fourth largest...


--
mphell0
------------------------------------------------------------------------
mphell0's Profile: http://www.excelforum.com/member.php...o&userid=30153
View this thread: http://www.excelforum.com/showthread...hreadid=537826

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mjc
 
Posts: n/a
Default lbs ounces grams


thanks mphell
i will try it thanks


--
mjc
------------------------------------------------------------------------
mjc's Profile: http://www.excelforum.com/member.php...o&userid=34021
View this thread: http://www.excelforum.com/showthread...hreadid=537826

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mjc
 
Posts: n/a
Default lbs ounces grams


thanks mphello
i will try it thanks


--
mjc
------------------------------------------------------------------------
mjc's Profile: http://www.excelforum.com/member.php...o&userid=34021
View this thread: http://www.excelforum.com/showthread...hreadid=537826

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vezerid
 
Posts: n/a
Default lbs ounces grams

This is a problem similar to time problems. I am not entirely familiar
with this system, but I think it is 16 oz to a pound and ca. 29 grams
to an ounce.

So we need to convert each weight to the smallest denomination, grams,
take the largest two of the total grams and add them. We can do this in
cell D5 with the *array* formula:

=SUM(LARGE(A2:A4*464+B2:B4*29+C2:C4,{1,2}))

As an array formula, this needs key combo Shift+Ctrl+Enter to commit.

Then, the formula for A5 (pounds) is;

=INT(D5/464)

The formula for B5 (oz) is:

=MOD((D5-C5)/29,16)

And the formula for C5 (grams) is:

=MOD(D5,29)

Explanation: 464 is 16*29. The exact content in grams of an ounce is
not so important for ordering purposes, but it could be if you add two
grams quantities in excess of an oz. So if you want replace 29 with the
exact number and 464 with 16*this number.

HTH
Kostis Vezerides



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mjc
 
Posts: n/a
Default lbs ounces grams


i think i put grams instead of drams.sorry. 16 oz lb 16 drams to oz.i
will try it anyway thanks .mjc


--
mjc
------------------------------------------------------------------------
mjc's Profile: http://www.excelforum.com/member.php...o&userid=34021
View this thread: http://www.excelforum.com/showthread...hreadid=537826

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mjc
 
Posts: n/a
Default lbs ounces grams


That Would Not Work But This Might Be Clearer To What I Want,
A1 Lb B1 Oz C1 Drams

A2 7 B2 8 C2 8
A3 8 B3 7 C3 8 3 Random Weights
A4 6 B4 5 C5 8

A5 B5 C5 Answer

I Want Excel To Find The 2 Biggest Weights And Put Answer In A5.b5.c5.
Or Can I Color The Biggest Weights Say Red And Get Excel To
To Add Them .and Put Answer In,


--
mjc
------------------------------------------------------------------------
mjc's Profile: http://www.excelforum.com/member.php...o&userid=34021
View this thread: http://www.excelforum.com/showthread...hreadid=537826

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How set up a spread in pounds & ounces? Peter Excel Discussion (Misc queries) 4 August 27th 05 12:05 PM
Spider Grams Ken Excel Discussion (Misc queries) 1 March 17th 05 03:47 PM
Lbs and Ounces treboryelbis Excel Worksheet Functions 1 January 22nd 05 12:48 AM
How can I add pounds and ounces in excel, Agoogirl Excel Discussion (Misc queries) 3 January 5th 05 10:00 PM
How do I convert from cc to teaspoons or ounces Help Excel Worksheet Functions 4 December 15th 04 12:49 PM


All times are GMT +1. The time now is 07:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"