Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default IF formula headache

I am trying to set up a formula in IF to calculate a figure into what I call
'STACKS' and BASKETS'. if I have a total of 6000 and I need to know how many
STACKS and BASKETS i need how do I do this. I can get STACKS but I cannot get
the difference if it shows 22.67 STACKS. How do I get the .67 converted into
Baskets.
STACKS = 9 high and product in a BASKET = 18.
Any help would be greatful.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default IF formula headache

Have a look at the MOD function, which returns the
remainder after division.

Cheers, Pete

-----Original Message-----
I am trying to set up a formula in IF to calculate a

figure into what I call
'STACKS' and BASKETS'. if I have a total of 6000 and I

need to know how many
STACKS and BASKETS i need how do I do this. I can get

STACKS but I cannot get
the difference if it shows 22.67 STACKS. How do I get

the .67 converted into
Baskets.
STACKS = 9 high and product in a BASKET = 18.
Any help would be greatful.
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default IF formula headache

If your answer is in cell D16, then put this in cell E16 -

RIGHT(D16)

That will equal the number of baskets in .67 stacks.

Mike F
"Puggwash" wrote in message
...
I am trying to set up a formula in IF to calculate a figure into what I

call
'STACKS' and BASKETS'. if I have a total of 6000 and I need to know how

many
STACKS and BASKETS i need how do I do this. I can get STACKS but I cannot

get
the difference if it shows 22.67 STACKS. How do I get the .67 converted

into
Baskets.
STACKS = 9 high and product in a BASKET = 18.
Any help would be greatful.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default IF formula headache

If a stack is 9 baskets of 18 items each then I get

total = 6000
? int(total/(9*18))
37 ' stacks
? total mod (9*18)
6 ' remaining products

to get 22 2/3 stacks, I would need 3672 products

total = 3672
? int(total/(9*18))
22 ' stacks
? (total mod (9*18))
108 ' 108 remainin products
? (total mod (9*18))/18
6 ' makes 6 baskets

for a formula if you total product count is in F6

=TRUNC(F6/(9*18)) & " Stacks and " & TRUNC(MOD(F6,(9*18))/18) & " baskets
with a remainder of " & MOD(F6,18) & " products"


--
Regards,
Tom Ogilvy



"Puggwash" wrote in message
...
I am trying to set up a formula in IF to calculate a figure into what I

call
'STACKS' and BASKETS'. if I have a total of 6000 and I need to know how

many
STACKS and BASKETS i need how do I do this. I can get STACKS but I cannot

get
the difference if it shows 22.67 STACKS. How do I get the .67 converted

into
Baskets.
STACKS = 9 high and product in a BASKET = 18.
Any help would be greatful.



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
Frequency Headache Rothman Excel Worksheet Functions 6 March 9th 06 09:25 PM
Vlookup Headache Stressed Out!! Excel Worksheet Functions 1 September 14th 05 06:03 AM
SQL Query Headache poppy Excel Programming 4 August 18th 04 05:10 PM
Header Headache! CWit[_7_] Excel Programming 10 March 4th 04 09:35 PM
Look up Headache Chris Excel Programming 3 November 26th 03 02:55 PM


All times are GMT +1. The time now is 09:46 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"