# Use value from one cell based on the date in adjacent cell

#### doublej41

##### Board Regular
Hi All,

I have what I imagine is a very basic query here.

In column A I have the date and in column J I have a list of numbers, starting at 1 and going up in increments of 1. What I would like to do in cell K2 is take the value from column J that relates to today's date and subtract the value that is calculated cell K1.

So each day the value from column J that is used in the calculation in cell K2 should increase by 1.

This is as far as I have made it, from this all I get is 'False':

=IF(\$B\$3:\$B\$190=TODAY();\$J\$3:\$J\$190-Sheet2!B6)

I hope this makes sense.

Thanks in advance for any help.

Jonathan

Last edited:

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Have a look at VLookup()

Worked a treat.

Thanks for the speedy reply!

Replies
2
Views
125
Replies
3
Views
381
Replies
1
Views
196
Replies
1
Views
325
Replies
2
Views
425

Threads
1,218,576
Messages
6,143,315
Members
450,477
Latest member
teresab543

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

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