LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 158
Default Error when insering a "Right" function

I have a very long, array-entered formula which does a couple lookups and
concatenates the results together. I want to wrap a "RIGHT" function around
the second lookup so that I get just the last character from the text in the
retrieved cell, rather than the entire text string. But when I try it I get
an error box (and highlights the first included ROW function as the culprit.
Does anyone have a hunch why it wouldn't work?

Here is the formula now, which is entered as an array (Shift+Ctrl+Enter):

=IF(ROWS(H8:H$8)<=COUNTIF(Successors!$E$4:$L$16,$H $11),CONCATENATE(INDEX(Successors!$C$4:$C$16,SMALL (IF(Successors!$E$4:$L$16=$H$11,ROW(Successors!$E$ 4:$L$16)-ROW(Successors!$E$4)+1),ROWS(H8:H$8))),"
(",INDEX(Successors!$E$3:$L$3,SUMPRODUCT((INDIRECT ("Successors!E"&SMALL(IF(Successors!$E$4:$L$16=$H$ 11,ROW(Successors!$E$4:$L$16)-ROW(Successors!$E$4)+1),ROWS(H8:H$8))+3&":L"&SMALL (IF(Successors!$E$4:$L$16=$H$11,ROW(Successors!$E$ 4:$L$16)-ROW(Successors!$E$4)+1),ROWS(H8:H$8))+3)=$H$11)*CO LUMN(Successors!$E$4:$L$16))-4),")"),"")

The formula produces the following kind of results: President (Successor1)

I want the value inside the parentheses shortened to just the last
character, in this case "1". The second lookup, then, is the INDEX function
located inside the " (" and ")" parts of the concatenate function. I know
this is too long and complex for anyone to reproduce, so I'm grateful for any
theories/knowledge rather than a tested solution.
 
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
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
IF function to blank without getting #value in sum function Brad Stevenson Excel Worksheet Functions 5 May 26th 05 10:26 AM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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