LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default I need to look for a number and return the column heading.

I have a large matrix of values, left column goes from 40 to 192 by 2's and
the header row goes from 5 to 50 by 1's, but for my question I will use a
small matrix. The table value is just the row header multiplied by the column
header of that cell.

5 6 7 8 9 10 11
40 200 240 280 320 360 400 440
42 210 252 294 336 378 420 462
44 220 264 308 352 396 440 484
46 230 276 322 368 414 460
48 240 288 336 384 432 480
50 250 300 350 400 450 500
52 260 312 364 416 468
54 270 324 378 432 486
56 280 336 392 448
58 290 348 406 464

From week to week I have a different value to look for in the first column.
Say this week that I need to look in the row with 52 in the left column. I
need a formula, or macro, that looks for the value closest to but not greater
than 500 and then returns the column header value of that cell. In this case
it would be 9. Next week I might need to look for 58 and I need to return 8.
The criteria of 500 could change so I need that to reference from a cell with
500 in it.

I thought of a GETPIVOTDATA function but I don't think that's going to do
what I need. I don't have a good grasp of all of the advanced LOOKUP
functions to just go right to it.

Any help would be appreciated.

Don M.
 
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
Return Column Heading based on value in row Lee New Users to Excel 2 May 21st 09 06:06 PM
Lookup value,return column heading MFM Excel Worksheet Functions 4 November 13th 08 06:32 PM
Return the value of a column heading Eric Excel Discussion (Misc queries) 1 May 19th 08 10:02 PM
Return column heading Tubthumper Excel Worksheet Functions 5 April 30th 08 09:09 PM
LOOKUP and return the column heading for IF/THEN return for False NN Excel Discussion (Misc queries) 1 October 6th 06 11:24 AM


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