Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Data Validation and Formula

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Data Validation and Formula

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

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
data validation formula Wanna Learn Excel Discussion (Misc queries) 1 May 13th 09 08:16 PM
Can I use formula with data validation? jb Excel Discussion (Misc queries) 1 October 24th 07 01:49 PM
data validation formula Kimberly Excel Discussion (Misc queries) 4 November 12th 06 03:01 PM
Help with Formula (data validation maybe?) [email protected] Excel Programming 5 March 22nd 06 07:05 PM
Data validation Formula FA Excel Discussion (Misc queries) 0 September 28th 05 02:57 PM


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