Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default return row header as answer

I have a 10 page workbook set up. It's a fairly straight forward table, just
simply adding rows and columns. Worksheets 2-10 are identical and report
their total values to the first page so that the totals are all consolidated
in a very easy to read format. What I need to do on each page feeding the 1st
total sheet is to find the max number in a column and have the row header,
which will be a name presented instead of the actual max number. I need to
equate that max number to the name and have that name come up on my total
page. I know how to reference a number (cell) from another sheet, I just do
not know how to equate this max number to the row header. Make sense? I am
using MS Office 2007 just for information.

Thanks in advance for any and all help here.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 373
Default return row header as answer

bogietrim, My suggestion seems like a ridiculous amount of trouble to go to
for such a simple thing. But, since no one else has replied, I'll pass it
along. Maybe it will be of some help. I'm assuming your numbers are in
column B and your row headers are in column A. James

Sub ShowMaxRow()
Dim RowName, MyMax, c
MyMax = Application.Max(Columns("b:b"))
Set c = ActiveSheet.Columns("b:b").Find(MyMax, LookIn:=xlValues,
lookat:=xlWhole)
RowName = Cells(c.Row, "a")
MsgBox RowName
End Sub

"bogietrim" wrote in message
...
I have a 10 page workbook set up. It's a fairly straight forward table,
just
simply adding rows and columns. Worksheets 2-10 are identical and report
their total values to the first page so that the totals are all
consolidated
in a very easy to read format. What I need to do on each page feeding the
1st
total sheet is to find the max number in a column and have the row header,
which will be a name presented instead of the actual max number. I need to
equate that max number to the name and have that name come up on my total
page. I know how to reference a number (cell) from another sheet, I just
do
not know how to equate this max number to the row header. Make sense? I am
using MS Office 2007 just for information.

Thanks in advance for any and all help here.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default return row header as answer



"Zone" wrote:

bogietrim, My suggestion seems like a ridiculous amount of trouble to go to
for such a simple thing. But, since no one else has replied, I'll pass it
along. Maybe it will be of some help. I'm assuming your numbers are in
column B and your row headers are in column A. James

Sub ShowMaxRow()
Dim RowName, MyMax, c
MyMax = Application.Max(Columns("b:b"))
Set c = ActiveSheet.Columns("b:b").Find(MyMax, LookIn:=xlValues,
lookat:=xlWhole)
RowName = Cells(c.Row, "a")
MsgBox RowName
End Sub

"bogietrim" wrote in message
...
I have a 10 page workbook set up. It's a fairly straight forward table,
just
simply adding rows and columns. Worksheets 2-10 are identical and report
their total values to the first page so that the totals are all
consolidated
in a very easy to read format. What I need to do on each page feeding the
1st
total sheet is to find the max number in a column and have the row header,
which will be a name presented instead of the actual max number. I need to
equate that max number to the name and have that name come up on my total
page. I know how to reference a number (cell) from another sheet, I just
do
not know how to equate this max number to the row header. Make sense? I am
using MS Office 2007 just for information.

Thanks in advance for any and all help here.



Thanks for your reply. This is just a bit above my skill level to decipher. Like you suggested, it shouldn't be that difficult I wouldn't think.

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 - Return value of the cell below the formula's answer Tinkerbell.1178[_2_] Excel Discussion (Misc queries) 1 April 24th 08 04:16 AM
multiple lists that return an answer v&sr4JC Excel Worksheet Functions 1 March 24th 07 05:14 AM
Formula to return an answer using a calculation Autumn Dreams Excel Worksheet Functions 1 April 27th 06 11:49 PM
Formula not Return Required Answer Q John Excel Worksheet Functions 1 April 23rd 06 09:42 AM
Return answer if..... Pat Excel Worksheet Functions 3 March 8th 05 10:52 PM


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