Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Any way to shorten this up?

Hi all, TIA.. had a user send me a sheet today, they wish to add 5 more
values to look up. The problem is that the answer that this formula comes
from are set up horizontally, the target cells are vertical so no autofill.
The formula is such:

=IF(HLOOKUP('Price Performance Index'!B6,'Price Performance
Index'!C6:P18,3,FALSE)="N/A","FUTURE",IF(HLOOKUP('Price Performance
Index'!B6,'Price Performance Index'!C6:P18,7,FALSE)=0,HLOOKUP('Price
Performance Index'!B6,'Price Performance
Index'!C6:P18,5,FALSE),IF(HLOOKUP('Price Performance Index'!B6,'Price
Performance Index'!C6:P18,5,FALSE)="N/A","N/A",IF(HLOOKUP('Price Performance
Index'!B6,'Price Performance Index'!C6:P18,5,FALSE)=(HLOOKUP('Price
Performance Index'!B6,'Price Performance
Index'!C6:P18,7,FALSE)),"GREEN",IF(HLOOKUP('Price Performance
Index'!B6,'Price Performance Index'!C6:P18,5,FALSE)<(HLOOKUP('Price
Performance Index'!B6,'Price Performance
Index'!C6:P18,8,FALSE)),"RED","YELLOW")))))

There's got to be a way to shorten this up and repeat it across without
duplicating this nightmare?

Again, TIA.

Kevin M.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default Any way to shorten this up?

Kevin M wrote...
. . . had a user send me a sheet today, they wish to add 5 more
values to look up. The problem is that the answer that this formula comes
from are set up horizontally, the target cells are vertical so no autofill.


Maybe no AUTOfill, but still possible to drag to fill. That is, maybe
they can't double click on the fill handle, but they could still drag
it right.

The formula is such:

=IF(HLOOKUP('Price Performance Index'!B6,'Price Performance
Index'!C6:P18,3,FALSE)="N/A","FUTURE",IF(HLOOKUP('Price Performance
Index'!B6,'Price Performance Index'!C6:P18,7,FALSE)=0,HLOOKUP('Price
Performance Index'!B6,'Price Performance
Index'!C6:P18,5,FALSE),IF(HLOOKUP('Price Performance Index'!B6,'Price
Performance Index'!C6:P18,5,FALSE)="N/A","N/A",IF(HLOOKUP('Price Performance
Index'!B6,'Price Performance Index'!C6:P18,5,FALSE)=(HLOOKUP('Price
Performance Index'!B6,'Price Performance
Index'!C6:P18,7,FALSE)),"GREEN",IF(HLOOKUP('Pri ce Performance
Index'!B6,'Price Performance Index'!C6:P18,5,FALSE)<(HLOOKUP('Price
Performance Index'!B6,'Price Performance
Index'!C6:P18,8,FALSE)),"RED","YELLOW")))))

There's got to be a way to shorten this up and repeat it across without
duplicating this nightmare?


About the only thing you could do to shorten this would be replacing
the references to 'Price Performance Index'!B6 and 'Price Performance
Index'!C6:P18 with defined names, being careful to make range addresses
in those defined names RELATIVE if that's what's needed, and replace
the FALSE 4th arguments to HLOOKUP with equivalent 0.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Any way to shorten this up?

Thanks as always Harlan.. I'll try setting 'Price Performance Index'!C6:P18
as static as the array data doesn't change from cell to cell jsut the index
number.

Kevin M.

"Harlan Grove" wrote:

Kevin M wrote...
. . . had a user send me a sheet today, they wish to add 5 more
values to look up. The problem is that the answer that this formula comes
from are set up horizontally, the target cells are vertical so no autofill.


Maybe no AUTOfill, but still possible to drag to fill. That is, maybe
they can't double click on the fill handle, but they could still drag
it right.

The formula is such:

=IF(HLOOKUP('Price Performance Index'!B6,'Price Performance
Index'!C6:P18,3,FALSE)="N/A","FUTURE",IF(HLOOKUP('Price Performance
Index'!B6,'Price Performance Index'!C6:P18,7,FALSE)=0,HLOOKUP('Price
Performance Index'!B6,'Price Performance
Index'!C6:P18,5,FALSE),IF(HLOOKUP('Price Performance Index'!B6,'Price
Performance Index'!C6:P18,5,FALSE)="N/A","N/A",IF(HLOOKUP('Price Performance
Index'!B6,'Price Performance Index'!C6:P18,5,FALSE)=(HLOOKUP('Price
Performance Index'!B6,'Price Performance
Index'!C6:P18,7,FALSE)),"GREEN",IF(HLOOKUP('Pri ce Performance
Index'!B6,'Price Performance Index'!C6:P18,5,FALSE)<(HLOOKUP('Price
Performance Index'!B6,'Price Performance
Index'!C6:P18,8,FALSE)),"RED","YELLOW")))))

There's got to be a way to shorten this up and repeat it across without
duplicating this nightmare?


About the only thing you could do to shorten this would be replacing
the references to 'Price Performance Index'!B6 and 'Price Performance
Index'!C6:P18 with defined names, being careful to make range addresses
in those defined names RELATIVE if that's what's needed, and replace
the FALSE 4th arguments to HLOOKUP with equivalent 0.


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
Shorten a Formula Kevin Excel Worksheet Functions 4 January 30th 06 02:31 AM
Shorten an IF formula Joker Excel Discussion (Misc queries) 4 December 10th 05 12:30 PM
Shorten Formulas MichelleExcelBeginner Excel Discussion (Misc queries) 4 September 29th 05 07:04 PM
How to shorten formulas?? dwest100 Excel Discussion (Misc queries) 4 September 29th 05 10:25 AM
formula too long, not sure how to shorten Jane Excel Worksheet Functions 16 January 11th 05 04:11 AM


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