Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default How do I find the "case" function in Excel 2007 ?

I need to design a worksheet where I need to put in 7 criteria. My patients
can get admitted in "Superdeluxe room" "Deluxe Room " "ICU" "General ward" ,
"ICU And then Deluxe room " Etc. If I have the case function in Excel then, I
can tell excel to put "a " amount for the "Deluxe room, "Y" amount for the
superdeluxe room etc. The IF function is too cumbersome.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default How do I find the "case" function in Excel 2007 ?

Why not set up a simple table with the room types and the costs and then do a
look-up?

HTH.

"Dr Alok Modi MD" wrote:

I need to design a worksheet where I need to put in 7 criteria. My patients
can get admitted in "Superdeluxe room" "Deluxe Room " "ICU" "General ward" ,
"ICU And then Deluxe room " Etc. If I have the case function in Excel then, I
can tell excel to put "a " amount for the "Deluxe room, "Y" amount for the
superdeluxe room etc. The IF function is too cumbersome.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default How do I find the "case" function in Excel 2007 ?

Hi Dave
Thanks
But How do i put up a table and do a look up in Excel. This is possible in
access?. Would it be possible to give me small sample demo?
Dr Alok Modi MD

"DaveO" wrote:

Why not set up a simple table with the room types and the costs and then do a
look-up?

HTH.

"Dr Alok Modi MD" wrote:

I need to design a worksheet where I need to put in 7 criteria. My patients
can get admitted in "Superdeluxe room" "Deluxe Room " "ICU" "General ward" ,
"ICU And then Deluxe room " Etc. If I have the case function in Excel then, I
can tell excel to put "a " amount for the "Deluxe room, "Y" amount for the
superdeluxe room etc. The IF function is too cumbersome.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default How do I find the "case" function in Excel 2007 ?

OK, here's a quick example. On Sheet1 have something like this in cells A1 to
B5

Superdeluxe Room £200
Deluxe Room £175
ICU £150
General Room £100
ICU then deluxe room £185

Then in Sheet2, where you have your patient records you'd have something
like this ...

Mr E Xample Superdeluxe Room
Mrs Bloggs ICU
Mrs Jones General Room

In the next column (Column C in my example) you'd have this formula...

=vlookup(B1, Sheet1!A1:B5, 2, False)

You'll need to alter the B1 for each row, but a simple drag and drop would
work for this.

HTH.

"Dr Alok Modi MD" wrote:

Hi Dave
Thanks
But How do i put up a table and do a look up in Excel. This is possible in
access?. Would it be possible to give me small sample demo?
Dr Alok Modi MD

"DaveO" wrote:

Why not set up a simple table with the room types and the costs and then do a
look-up?

HTH.

"Dr Alok Modi MD" wrote:

I need to design a worksheet where I need to put in 7 criteria. My patients
can get admitted in "Superdeluxe room" "Deluxe Room " "ICU" "General ward" ,
"ICU And then Deluxe room " Etc. If I have the case function in Excel then, I
can tell excel to put "a " amount for the "Deluxe room, "Y" amount for the
superdeluxe room etc. The IF function is too cumbersome.

  #5   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default How do I find the "case" function in Excel 2007 ?

Since VLookup is picky about spelling when you want an exact match (and to
avoid some typing), you might also consider using Data Validation on the
cells where you will be entering the room description. Select
Data/Validation, select List and enter the range reference to the first
column of the lookup table that has the room descriptions.

If your data and lookup table are on separate sheets, you will need to name
the first column of the lookup table to get data validation to work (select
the cells, then enter a name in the name box in the upper left corner of the
spreadsheet). Then in the data validation dialogue you will use =RoomDesc
for the source, where RoomDesc is the named range.


"Dr Alok Modi MD" wrote:

Hi Dave
Thanks
But How do i put up a table and do a look up in Excel. This is possible in
access?. Would it be possible to give me small sample demo?
Dr Alok Modi MD

"DaveO" wrote:

Why not set up a simple table with the room types and the costs and then do a
look-up?

HTH.

"Dr Alok Modi MD" wrote:

I need to design a worksheet where I need to put in 7 criteria. My patients
can get admitted in "Superdeluxe room" "Deluxe Room " "ICU" "General ward" ,
"ICU And then Deluxe room " Etc. If I have the case function in Excel then, I
can tell excel to put "a " amount for the "Deluxe room, "Y" amount for the
superdeluxe room etc. The IF function is too cumbersome.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default How do I find the "case" function in Excel 2007 ?

Thanks
I got my work done with the IF function. It took some time , but it has been
done.
Thanks all of you.
I however have a suggestion. It would be nice if microsoft would publish a
book with real life examples of all the functions, because the help they
provide just gives the syntax which is very confusing for non IT persons like
us.

"JMB" wrote:

Since VLookup is picky about spelling when you want an exact match (and to
avoid some typing), you might also consider using Data Validation on the
cells where you will be entering the room description. Select
Data/Validation, select List and enter the range reference to the first
column of the lookup table that has the room descriptions.

If your data and lookup table are on separate sheets, you will need to name
the first column of the lookup table to get data validation to work (select
the cells, then enter a name in the name box in the upper left corner of the
spreadsheet). Then in the data validation dialogue you will use =RoomDesc
for the source, where RoomDesc is the named range.


"Dr Alok Modi MD" wrote:

Hi Dave
Thanks
But How do i put up a table and do a look up in Excel. This is possible in
access?. Would it be possible to give me small sample demo?
Dr Alok Modi MD

"DaveO" wrote:

Why not set up a simple table with the room types and the costs and then do a
look-up?

HTH.

"Dr Alok Modi MD" wrote:

I need to design a worksheet where I need to put in 7 criteria. My patients
can get admitted in "Superdeluxe room" "Deluxe Room " "ICU" "General ward" ,
"ICU And then Deluxe room " Etc. If I have the case function in Excel then, I
can tell excel to put "a " amount for the "Deluxe room, "Y" amount for the
superdeluxe room etc. The IF function is too cumbersome.

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
FUNCTION GETPIVOTDATA EXCEL 2003 v EXCEL 2004 FOR MAC FRANCISCO PEREZ-LANDAETA Excel Worksheet Functions 0 July 6th 06 12:56 PM
MSNStockquote function is not working in Office 2007 beta Grazen Excel Worksheet Functions 1 May 29th 06 03:46 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
"Group" function very slow with Excel 2003 :( ... While very quick with Excel2000 :O) Alain79 Excel Discussion (Misc queries) 4 June 14th 05 07:34 AM
how do i create a find function for an excel drop list? RC Excel Discussion (Misc queries) 3 March 18th 05 03:09 PM


All times are GMT +1. The time now is 07:54 AM.

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

About Us

"It's about Microsoft Excel"