# vlookup, #value and reference to below cells

#### chukwa

##### New Member
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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
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?

Hello,

care to post an example of the data.

it may be a combination of vlookup and match.

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

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

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))``

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?

Replies
1
Views
100
Replies
2
Views
107
Replies
3
Views
149
Replies
7
Views
493
Replies
7
Views
269

1,196,254
Messages
6,014,274
Members
441,810
Latest member
LouLou1234

### 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?

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