IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
  Reply to this topicStart new topicStart Poll

 Excel Spreadsheet Help

 
Indi  
Posted: Thursday, Apr 5 2012, 22:00
Quote Post


Cinemafique
Group Icon
Group: Andolini Mafia Family
Joined: Nov 22, 2008

wa.gif

Member Award




Hi,

I'm doing a spreadsheet for my school and I was wondering how I could give an automatic calculation of the no. of people needed to be seated into each room. So say if there were 6 adults and 1 child going onto the trip; and I had the options of a Double Room, Single Room, and a Triple Room for them to choose from.

How would I put, in a formula... to automatically insert the total number of people into the correct rooms?

I was also wondering if someone could go through "IF" functions for changing a formula already inserted into the spreadsheet into another one.
Users WebsitePMMSNXbox Live
  Top
 

 
fred  
Posted: Friday, Apr 6 2012, 09:19
Quote Post



Group Icon
Group: Network Admins
Joined: Jul 20, 2002

XXXXX



If there's no other constraints and assuming the goal is to minimise the number of rooms, surely it's just a case of getting as many triples as possible plus one single or double depending on how many people are left over?
Triples = FLOOR(people/3)
Remainder = MOD(people, 3)
Doubles = IF(Remainder=2, 1, 0)
Singles = IF(Remainder=1, 1, 0)
PM
  Top
 

 
Indi  
Posted: Friday, Apr 6 2012, 13:33
Quote Post


Cinemafique
Group Icon
Group: Andolini Mafia Family
Joined: Nov 22, 2008

wa.gif

Member Award




Sounds right, what your saying, but I need to know what those functions do now.
http://puu.sh/occK

...and where do I put them.

This post has been edited by Indi on Friday, Apr 6 2012, 14:04
Users WebsitePMMSNXbox Live
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG