vlookup, #value and reference to below cells

chukwa

New Member
Joined
Nov 6, 2005
Messages
9
hi

i have a set of vlookups looking up dates...in a couple of instances the date is not in my vlookup column and i simply want the cell to equal the previous (or below cell)

how do i do this

thaks

chu
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
More clarity please ... does "previous ( or below cell )" mean the next cell down in the lookup table? Or does it mean use the value that the next cell down from where the formula is?
 
Upvote 0
Hello,

care to post an example of the data.

it may be a combination of vlookup and match.
 
Upvote 0
hi thanks for the help

Open High Low Close Volume
7-Nov-05 2.38 2.4 2.37 2.39 13766000
4-Nov-05 2.36 2.4 2.36 2.38 20478000
2-Nov-05 2.34 2.37 2.33 2.37 30224000
1-Nov-05 #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
31-Oct-05 2.34 2.35 2.33 2.33 23715000

where the formual equals =VLOOKUP($A7,singtel!$A:$M,2,FALSE)

in this case 1 nov 05 was a holiday and i want the cell to be referenced to the 31st oct
 
Upvote 0
GlennUK said:
More clarity please ... does "previous ( or below cell )" mean the next cell down in the lookup table? Or does it mean use the value that the next cell down from where the formula is?

cell directly under refer to the example
 
Upvote 0
Try:
Code:
=IF(ISERROR(VLOOKUP($A7,singtel!$A:$M,2,FALSE)),=VLOOKUP($A8,singtel!$A:$M,2,FALSE),=VLOOKUP($A7,singtel!$A:$M,2,FALSE))
 
Upvote 0
Re: hi thanks for the help

chukwa said:
Open High Low Close Volume
7-Nov-05 2.38 2.4 2.37 2.39 13766000
4-Nov-05 2.36 2.4 2.36 2.38 20478000
2-Nov-05 2.34 2.37 2.33 2.37 30224000
1-Nov-05 #VALUE! #VALUE! #VALUE! #VALUE! #VALUE!
31-Oct-05 2.34 2.35 2.33 2.33 23715000

where the formual equals =VLOOKUP($A7,singtel!$A:$M,2,FALSE)

in this case 1 nov 05 was a holiday and i want the cell to be referenced to the 31st oct

It looks like the dates are in descending order. If so, can you sort A:M in ascending order on column A?
 
Upvote 0

Forum statistics

Threads
1,213,539
Messages
6,114,221
Members
448,554
Latest member
Gleisner2

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