Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Finding a value in a cell matching up with a column/row

I am tring to figure out how to find a value in a cell. the first Column a
wold consists of values and the first row would be the year. I need to find
the value that corrospondes with teh year.
For Example

2005 2006 2007 2008

Price 2 3 4 5

Rate 4 5 7 2

Total 8 15 28 10

I need to find the value of the Total in 2007

How can this be done? either by code or by formula.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Finding a value in a cell matching up with a column/row

If you have your year numbers in A1:E1 and your Price/Rate/Total headers in
A2:A5, then the following formula will return the Price for 2007.

=OFFSET(A1,MATCH("Price",A2:A5,0),MATCH(2007,A1:E1 ,0)-1,1,1)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)



"BZeyger" wrote in message
...
I am tring to figure out how to find a value in a cell. the first Column a
wold consists of values and the first row would be the year. I need to
find
the value that corrospondes with teh year.
For Example

2005 2006 2007 2008

Price 2 3 4 5

Rate 4 5 7 2

Total 8 15 28 10

I need to find the value of the Total in 2007

How can this be done? either by code or by formula.


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
Finding matching cells between two workborks and updating cell con tukky142 Excel Worksheet Functions 2 February 26th 07 11:27 AM
Finding matching cell data SRL Excel Worksheet Functions 1 February 24th 06 02:48 PM
Finding the cell reference of a matching search value ndrewitt Excel Worksheet Functions 0 April 13th 05 01:43 AM
Finding Matching Records in a Column Archie[_3_] Excel Programming 0 August 26th 04 08:30 PM
Matching cell in one column to value in another Bruce Excel Programming 2 June 7th 04 03:24 PM


All times are GMT +1. The time now is 01:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"