PC Review


Reply
Thread Tools Rate Thread

Data Validation and Formula

 
 
Hasnain
Guest
Posts: n/a
 
      1st Mar 2008
Hello,

I'm making a hotel worksheet.. I have a dropdown menu at B2 with these
options (Single, Double and Suit), and on C2 I have an Adavance column (If a
guest pays any money in advance).

The prices are as follows Single = 39000, Double = 45000 and Suit = 85000

I want the BALANCE at cell E2 should calculate the BALANCE

e.g If I select "Single" from B2 Drop Menu and the guest has paid ADVANCE
10000, the BALANCE should automatically calculate 39000 - 10000 = 29000. The
same way if I select suit or Double it should consider the room rate and
minus the ADVANCE (if paid) and show the value.

Please help.

Hasnain
(E-Mail Removed)
 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      1st Mar 2008
hi
since you are using a validation list, i assumed that you have your list off
to the side somewhere. i put my list at J2:J4 for testing purposes only. next
to the list of Single, double, suite, in K2:K4, i put the values 39000,
45000, 85000.
in E2 i put this formula....
=IF(B2="single",K2-C2,IF(B2="double",K3-C2,IF(B2="Suite",K4-C2,"")))
or if you don't want the values listed on the sheet....
=IF(B2="single",K2-39000,IF(B2="double",K3-45000,IF(B2="Suite",K4-85000,"")))
either way works. adjust to fit your data.

Regards
FSt1

"Hasnain" wrote:

> Hello,
>
> I'm making a hotel worksheet.. I have a dropdown menu at B2 with these
> options (Single, Double and Suit), and on C2 I have an Adavance column (If a
> guest pays any money in advance).
>
> The prices are as follows Single = 39000, Double = 45000 and Suit = 85000
>
> I want the BALANCE at cell E2 should calculate the BALANCE
>
> e.g If I select "Single" from B2 Drop Menu and the guest has paid ADVANCE
> 10000, the BALANCE should automatically calculate 39000 - 10000 = 29000. The
> same way if I select suit or Double it should consider the room rate and
> minus the ADVANCE (if paid) and show the value.
>
> Please help.
>
> Hasnain
> (E-Mail Removed)

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula for Data Validation Nadine Microsoft Excel Programming 1 27th May 2010 11:57 PM
Can I use formula with data validation? =?Utf-8?B?amI=?= Microsoft Excel Misc 1 24th Oct 2007 01:49 PM
data validation formula =?Utf-8?B?S2ltYmVybHk=?= Microsoft Excel Misc 4 12th Nov 2006 03:01 PM
formula using data validation Tuttamay77 Microsoft Excel Misc 5 4th Apr 2006 10:44 AM
Data validation Formula =?Utf-8?B?RkE=?= Microsoft Excel Misc 0 28th Sep 2005 02:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:31 AM.