Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default Multiple function queries in same cell

Hello.

Is it possible to have two functions in the same cell, even if one is
already nested?

Example:

Function for K8:

=IF(G8="PSY","PSY",IF(G8="CONTINUITY","CONTINUITY" ,IF(G8="REQUEST","PT/FAMILY
REQUEST",IF(G8="AMI","CARDIAC",IF(G8="MULTI
TRAUMA","TRAUMA",IF(G8="GSW","TRAUMA",IF(G8="SAH", "NEURO","")))))))

Cell C8 lists ages. Is it possible to do another function in K8 resulting
in PEDS if C8 <=18?

Many thanks.

--
Donna
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Multiple function queries in same cell

Hi,

=IF(C8<=18,"Peds","")&IF(G8="PSY","PSY",IF(G8="CON TINUITY","CONTINUITY",IF(G8="REQUEST","PT/FAMILY
REQUEST",IF(G8="AMI","CARDIAC",IF(G8="MULTI
TRAUMA","TRAUMA",IF(G8="GSW","TRAUMA",IF(G8="SAH", "NEURO","")))))))

You are trying to beat the 7 level nesting limit in 2003? Above will do it.
Or get 2007, or use VLOOKUP.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Donna" wrote:

Hello.

Is it possible to have two functions in the same cell, even if one is
already nested?

Example:

Function for K8:

=IF(G8="PSY","PSY",IF(G8="CONTINUITY","CONTINUITY" ,IF(G8="REQUEST","PT/FAMILY
REQUEST",IF(G8="AMI","CARDIAC",IF(G8="MULTI
TRAUMA","TRAUMA",IF(G8="GSW","TRAUMA",IF(G8="SAH", "NEURO","")))))))

Cell C8 lists ages. Is it possible to do another function in K8 resulting
in PEDS if C8 <=18?

Many thanks.

--
Donna

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default Multiple function queries in same cell

Thanks. How would I write it if I wanted C8 to result in Peds if the ages
were 1 - 18? Just using <=18 makes my worksheet look "busy".

Thanks again.
--
Donna


"Shane Devenshire" wrote:

Hi,

=IF(C8<=18,"Peds","")&IF(G8="PSY","PSY",IF(G8="CON TINUITY","CONTINUITY",IF(G8="REQUEST","PT/FAMILY
REQUEST",IF(G8="AMI","CARDIAC",IF(G8="MULTI
TRAUMA","TRAUMA",IF(G8="GSW","TRAUMA",IF(G8="SAH", "NEURO","")))))))

You are trying to beat the 7 level nesting limit in 2003? Above will do it.
Or get 2007, or use VLOOKUP.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Donna" wrote:

Hello.

Is it possible to have two functions in the same cell, even if one is
already nested?

Example:

Function for K8:

=IF(G8="PSY","PSY",IF(G8="CONTINUITY","CONTINUITY" ,IF(G8="REQUEST","PT/FAMILY
REQUEST",IF(G8="AMI","CARDIAC",IF(G8="MULTI
TRAUMA","TRAUMA",IF(G8="GSW","TRAUMA",IF(G8="SAH", "NEURO","")))))))

Cell C8 lists ages. Is it possible to do another function in K8 resulting
in PEDS if C8 <=18?

Many thanks.

--
Donna

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
Multiple queries under same connection CLamar Excel Discussion (Misc queries) 0 June 20th 06 02:31 PM
Refreashing queries in multiple spreasheets Hru48 Excel Discussion (Misc queries) 2 May 3rd 06 04:48 PM
Importing multiple XML queries into Excel Dave Bailey Excel Discussion (Misc queries) 0 October 7th 05 09:20 AM
Executing multiple queries through a macro Sharon Excel Discussion (Misc queries) 0 April 1st 05 01:47 AM
Multiple worksheet queries liam Excel Worksheet Functions 3 February 16th 05 06:52 PM


All times are GMT +1. The time now is 09:13 PM.

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"