#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default Formula Question

I need to create a formula to do the following:

LOC STAT FACILITY PROF
ADJ VOID 0 0
COB COB 0 0
COB LNLVL 0 0
COB MED 0 6
COB PEND 14 31
COB SPLIT 0 0

I need Excel to find the matching text in column B (ex. LNLVL) and then
return the value found in Facility and Prof columns.

Can anyone help me? I have tried using help and can't get it to work.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Formula Question

One way, assuming LNLVL is a unique entry:

Enter this formula in one cell and copy across to a second cell:

=SUMIF($B2:$B7,"LNLVL",C2:C7)

--
Biff
Microsoft Excel MVP


"Stephanie" wrote in message
...
I need to create a formula to do the following:

LOC STAT FACILITY PROF
ADJ VOID 0 0
COB COB 0 0
COB LNLVL 0 0
COB MED 0 6
COB PEND 14 31
COB SPLIT 0 0

I need Excel to find the matching text in column B (ex. LNLVL) and then
return the value found in Facility and Prof columns.

Can anyone help me? I have tried using help and can't get it to work.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default Formula Question

I answered that this did not work but it did. I just had to tweak it a
little. One other question though. One of the text values MEDB is located
on two lines and I only need one of the lines. There is another field in the
A column that defines which one I need. Is there a way to add that?



"T. Valko" wrote:

One way, assuming LNLVL is a unique entry:

Enter this formula in one cell and copy across to a second cell:

=SUMIF($B2:$B7,"LNLVL",C2:C7)

--
Biff
Microsoft Excel MVP


"Stephanie" wrote in message
...
I need to create a formula to do the following:

LOC STAT FACILITY PROF
ADJ VOID 0 0
COB COB 0 0
COB LNLVL 0 0
COB MED 0 6
COB PEND 14 31
COB SPLIT 0 0

I need Excel to find the matching text in column B (ex. LNLVL) and then
return the value found in Facility and Prof columns.

Can anyone help me? I have tried using help and can't get it to work.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Formula Question

If there are duplicate entries in the STAT column then it becomes somewhat
complicated.

Try this array formula** entered in one cell then copied across to a second
cell:

=INDEX(C2:C7,SMALL(IF($B2:$B7="med",ROW(B2:B7)-MIN(ROW(B2:B7))+1),n))

Where n = instance number that you want to look for. n can be a cell
reference like A1.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Stephanie" wrote in message
...
I answered that this did not work but it did. I just had to tweak it a
little. One other question though. One of the text values MEDB is
located
on two lines and I only need one of the lines. There is another field in
the
A column that defines which one I need. Is there a way to add that?



"T. Valko" wrote:

One way, assuming LNLVL is a unique entry:

Enter this formula in one cell and copy across to a second cell:

=SUMIF($B2:$B7,"LNLVL",C2:C7)

--
Biff
Microsoft Excel MVP


"Stephanie" wrote in message
...
I need to create a formula to do the following:

LOC STAT FACILITY PROF
ADJ VOID 0 0
COB COB 0 0
COB LNLVL 0 0
COB MED 0 6
COB PEND 14 31
COB SPLIT 0 0

I need Excel to find the matching text in column B (ex. LNLVL) and then
return the value found in Facility and Prof columns.

Can anyone help me? I have tried using help and can't get it to work.






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
Formula Question Johnnie[_2_] Excel Discussion (Misc queries) 3 February 8th 08 10:43 PM
Formula question bgrearick Excel Discussion (Misc queries) 1 December 31st 06 09:24 PM
Formula Question dramajuana Excel Discussion (Misc queries) 6 July 21st 06 11:41 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
IF formula question Mad Dog Excel Discussion (Misc queries) 2 June 24th 05 03:50 PM


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

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"