#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default FORMULA'S

I am trying to make a shopping list in B2 i want to put the weight as in 1kg
or 1000grams in C2 I want to put the price per kilo in D2 I want to put the
amount I need say 500grs or half kilo and then in E2 I want the total price.
I have tried a few formula's that I know but this is just not working can
anyone help with this Please. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 515
Default FORMULA'S

In E2, insert =IF(D2="","",D2*C2/B2)

--
HTH

Kassie

Replace xxx with hotmail


"adnil" wrote:

I am trying to make a shopping list in B2 i want to put the weight as in 1kg
or 1000grams in C2 I want to put the price per kilo in D2 I want to put the
amount I need say 500grs or half kilo and then in E2 I want the total price.
I have tried a few formula's that I know but this is just not working can
anyone help with this Please. Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default FORMULA'S

"adnil" wrote:

I am trying to make a shopping list in B2 i want to put the weight as in 1kg
or 1000grams in C2 I want to put the price per kilo in D2 I want to put the
amount I need say 500grs or half kilo and then in E2 I want the total price.
I have tried a few formula's that I know but this is just not working can
anyone help with this Please. Thanks


I'm not sure exactly what you mean, but I think the get the idea...

Do you want variable Unit of Measure in one cell? e.g.

A B C D E
1 Product UOM PPK Reqd Total
2 Banana 1k $1.10 500g $0.55
3 Apple 1000g $2.00 1k $2.00
4 Peach 1k $3.00 0.5k $1.50

your formula in E will be rather in depth, with many nestings, but i believe
it is possible (certainly in 2007 with the higher limits than previous
versions)

Total =
IF(RIGHT(D2,2)="kg",C2*LEFT(D2,LEN(D2)-2),C2*(LEFT(D2,LEN(D2)-1)/1000))

So, in English, I'm saying

If the last two characters in D2 are kg then (cos the price is per kg);
multiply price by the contents of D2 (less the two characters)
otherwise
(it must be in grams)
first convert the weight to kilos (taking of the trailing g) and multiply
by price

The big must do's for this formula to work, you can only use g or kg.... i
have a solution for how to use other measurements if you need it (e.g.
litres/mls)

HTH
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
Formula's ShellH Excel Worksheet Functions 2 February 22nd 06 06:02 PM
Formula's George Excel Worksheet Functions 7 January 26th 06 07:11 PM
formula's Cindy Excel Discussion (Misc queries) 4 January 20th 06 04:35 PM
Need Help w/Formula's sunrosejenn Excel Worksheet Functions 5 October 24th 05 07:33 PM
formula's sunrosejenn Excel Worksheet Functions 1 October 14th 05 01:38 PM


All times are GMT +1. The time now is 08:16 AM.

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

About Us

"It's about Microsoft Excel"