Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
A B C
1 Room Service Use 2 10100 PSYCHIATRY MUSIC RM Basically I need a formula that wil take If B2 = "psychiatry", print(or list) corresponding A cell, in this case 10100. I'd liek to be able to print(list) all the rooms of the hospital under their corresponding service. I can total, across floors, but I am having a bear getting what I what as described. -- Thanks, Nick |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On 5 June, 21:13, Nick Guerrier wrote:
A * * * * * * * B * * * * * * * * * * * * * * C * 1 Room * * * * Service * * * * * * * * * *Use 2 10100 PSYCHIATRY * * *MUSIC RM Basically I need a formula that wil take If B2 = "psychiatry", print(or list) corresponding A cell, in this case 10100. I'd liek to be able to print(list) all the rooms of the hospital under their corresponding service. I can total, across floors, but I am having a bear getting what I what as described. -- Thanks, Nick Use a combination of MATCH (to work out which row in column B it is found) and INDEX (to return the value in column 1 row x (from above) =INDEX(A:B,MATCH("PSYCHIATRY",B:B),1) returns 10100 as required. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
have you tried using a pivot table?
"Nick Guerrier" wrote in message ... A B C 1 Room Service Use 2 10100 PSYCHIATRY MUSIC RM Basically I need a formula that wil take If B2 = "psychiatry", print(or list) corresponding A cell, in this case 10100. I'd liek to be able to print(list) all the rooms of the hospital under their corresponding service. I can total, across floors, but I am having a bear getting what I what as described. -- Thanks, Nick |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Return cell referance of the first cell that equals a value? | Excel Worksheet Functions | |||
If a cell equals _, at the next row that equals _, return value fr | Excel Worksheet Functions | |||
If cell is left blank, or equals zero, then cell equals a different cell | Excel Discussion (Misc queries) | |||
If Cell equals text Copy Cells, B2,B3,B4 | Excel Programming | |||
Entered text value equals a number I specify in another cell | Excel Worksheet Functions |