Formula to find similar values and report difference in years

th_kvt

New Member
Joined
Oct 22, 2014
Messages
1
Hey everyone,

I hope you can help me out. Here is the problem:

Excel file can be downloaded via WeTransfer (didn't know another solution to add a file):
https://www.wetransfer.com/download...48205ed10412e842b50d8f4420141022132637/542df0
or
http://tinyurl.com/help-xlsx

If you look at the excel file you can see a lot of countries and years starting from 1960 till 2008. The third column indicates the intensity of computer use per country per year. It is reasonable that a lot of data is missing in the first decade(s), simply because the computer is something relatively knew. In the complete dataset more technologies are present and these may be available from the 1960’s onwards (for example telephones).

Using this data I want to calculate the years lag between the United States and country X, where country X is every single other country stated in the dataset. This lag can be explained as the difference in time between a country’s technology usage intensity (so country X) and the last time the United States had a similar technology usage intensity.

To give an example:
When looking at Austria, the year 1998 and the computer usage intensity (see cell C138 = 0.23342137), it can be obtained that the United States had a similar computer usage intensity in 1991 (see cell C4054 = 0.233614376). The formula then reports that the lag is 7 years (=1998 – 1991).

Of course it might be the case that for some countries and years there cannot be an answer.

To illustrate that I will give another example:
When looking at Argentina, the years 1988 and the computer usage intensity (see cell C30 = 0.004405223), it can be obtained that the United States had NOT a similar usage intensity in the history. The United States had in 1981 a computer usage intensity of 0.009218756, but this is much higher than the computer usage intensity of Argentina in 1988. So the formula should report either an error or just state a dot as to indicate it cannot be calculated. This illustrates directly that the computer usage intensity of country X for a given year should be larger than or equal to (>=) the computer usage intensity of the USA in some year.


If you have any questions, please state them below!

I hope you all have an idea what the formula should look like.

Thanks in advance!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,214,866
Messages
6,121,996
Members
449,060
Latest member
mtsheetz

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