Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Evaluate 5 columns and return right-most name

I have 5 columns containing different supervisor levels. Some columns are
blank. I would like to write a formula to evaluate the 5 columns and return
the name in the farthest right column. Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Evaluate 5 columns and return right-most name

Try one of these:

=INDEX(A1:E1,MATCH(REPT("Z",255),A1:E1))

=IF(COUNTIF(A1:E1,"*"),INDEX(A1:E1,MATCH(REPT("Z", 255),A1:E1)),"")


--
Biff
Microsoft Excel MVP


"JulesMacD" wrote in message
...
I have 5 columns containing different supervisor levels. Some columns are
blank. I would like to write a formula to evaluate the 5 columns and
return
the name in the farthest right column. Thank you!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 272
Default Evaluate 5 columns and return right-most name

Or a bit shorter

=LOOKUP("α",A1:E1)

where "α" is the alpha character [Alt+224] or inserted with insertsymbol.


"T. Valko" wrote:

Try one of these:

=INDEX(A1:E1,MATCH(REPT("Z",255),A1:E1))

=IF(COUNTIF(A1:E1,"*"),INDEX(A1:E1,MATCH(REPT("Z", 255),A1:E1)),"")


--
Biff
Microsoft Excel MVP


"JulesMacD" wrote in message
...
I have 5 columns containing different supervisor levels. Some columns are
blank. I would like to write a formula to evaluate the 5 columns and
return
the name in the farthest right column. Thank you!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Evaluate 5 columns and return right-most name

Just because I could never remember how I made that funny character:

=LOOKUP(char(224),A1:E1)



Lori wrote:

Or a bit shorter

=LOOKUP("α",A1:E1)

where "α" is the alpha character [Alt+224] or inserted with insertsymbol.

"T. Valko" wrote:

Try one of these:

=INDEX(A1:E1,MATCH(REPT("Z",255),A1:E1))

=IF(COUNTIF(A1:E1,"*"),INDEX(A1:E1,MATCH(REPT("Z", 255),A1:E1)),"")


--
Biff
Microsoft Excel MVP


"JulesMacD" wrote in message
...
I have 5 columns containing different supervisor levels. Some columns are
blank. I would like to write a formula to evaluate the 5 columns and
return
the name in the farthest right column. Thank you!





--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Evaluate 5 columns and return right-most name

I've tried all 4 formulas and none are working. Perhaps I should show an
example.

A B C D E
Smith,T Jones,B
Smith,T Jones,B Green,J
Jones,B Gray,J Brown,Q Black,E

I tried =if(E2="",D2,if(D2="",C2,IF(C2="",B2,IF(B2="",A2," check")))) but
it's returning a '0'. The farther you go to the right, the more direct the
supv so I want the name in the farthest right column. I hope this makes
sense.

"T. Valko" wrote:

Try one of these:

=INDEX(A1:E1,MATCH(REPT("Z",255),A1:E1))

=IF(COUNTIF(A1:E1,"*"),INDEX(A1:E1,MATCH(REPT("Z", 255),A1:E1)),"")


--
Biff
Microsoft Excel MVP


"JulesMacD" wrote in message
...
I have 5 columns containing different supervisor levels. Some columns are
blank. I would like to write a formula to evaluate the 5 columns and
return
the name in the farthest right column. Thank you!






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Evaluate 5 columns and return right-most name

If you want help, you need to say something more than 'not working'. What
didn't work? What results did you get.

Regarding your If formula, you need to check for non-blanks, rather than
blanks. Something like:
=if(E2<"",E2,if(D2<"",D2,IF(C2<"",C2,IF(B2<"", B2,A2))))

Regards
Fred.

"JulesMacD" wrote in message
...
I've tried all 4 formulas and none are working. Perhaps I should show an
example.

A B C D E
Smith,T Jones,B
Smith,T Jones,B Green,J
Jones,B Gray,J Brown,Q Black,E

I tried =if(E2="",D2,if(D2="",C2,IF(C2="",B2,IF(B2="",A2," check")))) but
it's returning a '0'. The farther you go to the right, the more direct
the
supv so I want the name in the farthest right column. I hope this makes
sense.

"T. Valko" wrote:

Try one of these:

=INDEX(A1:E1,MATCH(REPT("Z",255),A1:E1))

=IF(COUNTIF(A1:E1,"*"),INDEX(A1:E1,MATCH(REPT("Z", 255),A1:E1)),"")


--
Biff
Microsoft Excel MVP


"JulesMacD" wrote in message
...
I have 5 columns containing different supervisor levels. Some columns
are
blank. I would like to write a formula to evaluate the 5 columns and
return
the name in the farthest right column. Thank you!





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 272
Default Evaluate 5 columns and return right-most name

Actually char(224) is equivalent to [Alt+0224] which is "Ã*" and this will not
work as the lookup value needs to always sort to the bottom of the list.

Without a leading zero, [Alt+224] is ascii, see: http://www.asciitable.com/.
In windows unicode it is 03B1 in hex or chrw(945) in vba and any other such
extended character should also work.

"Dave Peterson" wrote:

Just because I could never remember how I made that funny character:

=LOOKUP(char(224),A1:E1)



Lori wrote:

Or a bit shorter

=LOOKUP("α",A1:E1)

where "α" is the alpha character [Alt+224] or inserted with insertsymbol.

"T. Valko" wrote:

Try one of these:

=INDEX(A1:E1,MATCH(REPT("Z",255),A1:E1))

=IF(COUNTIF(A1:E1,"*"),INDEX(A1:E1,MATCH(REPT("Z", 255),A1:E1)),"")


--
Biff
Microsoft Excel MVP


"JulesMacD" wrote in message
...
I have 5 columns containing different supervisor levels. Some columns are
blank. I would like to write a formula to evaluate the 5 columns and
return
the name in the farthest right column. Thank you!




--

Dave Peterson

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Evaluate 5 columns and return right-most name

=if(E2<"",E2,if(D2<"",D2,IF(C2<"",C2,IF(B2<"", B2,A2))))

I would include a test for A2 as well.

I've tried all 4 formulas and none are working.
I tried =if(E2="",D2,if(D2="",C2,IF(C2="",B2,IF(B2="",A2," check"))))
but it's returning a '0'.


Hmmm...

All of the suggested formulas *should* work. If the cells contain formulas
that return formula blanks ("") and that is the rightmost cell then that
will be the result of the formula. However, if your IF formula is returning
0 then there must not be formula blanks in the cells.

So, I don't know why none of the suggested formulas don't work!


--
Biff
Microsoft Excel MVP


"Fred Smith" wrote in message
...
If you want help, you need to say something more than 'not working'. What
didn't work? What results did you get.

Regarding your If formula, you need to check for non-blanks, rather than
blanks. Something like:
=if(E2<"",E2,if(D2<"",D2,IF(C2<"",C2,IF(B2<"", B2,A2))))

Regards
Fred.

"JulesMacD" wrote in message
...
I've tried all 4 formulas and none are working. Perhaps I should show an
example.

A B C D E
Smith,T Jones,B
Smith,T Jones,B Green,J
Jones,B Gray,J Brown,Q Black,E

I tried =if(E2="",D2,if(D2="",C2,IF(C2="",B2,IF(B2="",A2," check")))) but
it's returning a '0'. The farther you go to the right, the more direct
the
supv so I want the name in the farthest right column. I hope this makes
sense.

"T. Valko" wrote:

Try one of these:

=INDEX(A1:E1,MATCH(REPT("Z",255),A1:E1))

=IF(COUNTIF(A1:E1,"*"),INDEX(A1:E1,MATCH(REPT("Z", 255),A1:E1)),"")


--
Biff
Microsoft Excel MVP


"JulesMacD" wrote in message
...
I have 5 columns containing different supervisor levels. Some columns
are
blank. I would like to write a formula to evaluate the 5 columns and
return
the name in the farthest right column. Thank you!






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
vlookup to return 2 columns oldLearner57 Excel Discussion (Misc queries) 5 May 13th 07 03:15 AM
Can Excel evaluate one cell and return the information in another? John Excel Discussion (Misc queries) 8 March 26th 07 08:34 PM
Function evaluate multiple cells and return 1st one w/a value Dan Shoemaker Excel Discussion (Misc queries) 1 August 27th 06 02:46 AM
how can you auto return from columns B1 to A2 arran tw Excel Discussion (Misc queries) 6 July 12th 06 08:01 PM
want sumif function's range to evaluate 2 columns Debgala Excel Worksheet Functions 7 November 6th 05 03:46 AM


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