Finding a number

damian_r_Home

Board Regular
Joined
Jan 8, 2005
Messages
231
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Evening All.
I need help with two formulas that lookup dates and return a value from an adjacent cell.

The first of these formulas is as follows.

In range A5 to A1500 there will be a range on ascending dates.
In column C5 to C1500 there will occasionally be a numerical value.

I need a formula that looks down the date range and then returns the value it finds in the same row but over in column C.
The problem is that i can't just use a formula that finds the highest date value as that may not have a corresponding value over in row C... it could be the last time a date has a number over in column C is 10, 100, or 200 rows up from the last date in the A5:A1500 range.

The second formula (I hope is easier) is that in the range C5:C1500 i want a formula which just give the first number it finds in that cell working from top to bottom.

Hope you can help.

D
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
For the 1st, I would use vlookup(), something like...
=vlookup(search-criteria,$A$5:$A$1500,3,0)

For the 2nd...
=INDEX($C$5$C$1500,MATCH(TRUE,INDEX(($C5:$C1500<>0),0),0))
 
Upvote 0
Hi Aladin
It was an awkward thing to try and describe...I'll try here again in a representation of a short version of the sheet.

Col A Col B Col C
5th May
6th May 1007
7th May
8th May 987
9th May
10th May
11th May 995
12th May
13th May

OK, i'm looking for a formula that looks will show me the most recent value that appears in Col C when working from the top to the bottom of the list...
Column B will have data in almost every cell as well but that bears no relevance to the Col A or Col C values.

Hope this helps?

D
 
Upvote 0
Afternoon FDibbins

I've not tried the first formula but the second worked a treat.
Is there a version of the second one that would give the last number it finds in a column working top to bottom?

D
 
Upvote 0
Hi Aladin
It was an awkward thing to try and describe...I'll try here again in a representation of a short version of the sheet.

Col A Col B Col C
5th May
6th May 1007
7th May
8th May 987
9th May
10th May
11th May 995
12th May
13th May

OK, i'm looking for a formula that looks will show me the most recent value that appears in Col C when working from the top to the bottom of the list...
Column B will have data in almost every cell as well but that bears no relevance to the Col A or Col C values.

Hope this helps?

D

What is the desired value here?
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,210
Members
453,023
Latest member
alabaz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top