Return value if date/value falls in range

DavidvanR

New Member
Joined
Jun 30, 2017
Messages
2
Hi everybody,

I hope someone can help me out here with the following issue. I would like to return the value D2 in J2 if the following condition is met J$1 >B2, J$1<C2. And I want to do the same for the values E2, F2, G, H2, I2 for the subsequent cells after J2. So if header J1 "1980" falls in the range of B2 and C2.

Var_IDVar_StartyearVar_Ending_yearD) Var_Occupation_1_digitE)
Var_Occupation_2_digit
F)
Var_Occupation_3_digit
G)
Var_Comp_TYPE
H)
Var_Comp_Sector
I)
Var_Comp_INDUSTRY
J)
1980
K)
1980
L)
1980
M)
1980
O)
1980
P)
1980
1000001201520162242415442
1000002#NULL!443431#NULL!#NULL!#NULL!
1000003197920009999994441
1000004#NULL!3333326113
1000005201320163333316441
1000006201520166616106111
1000007201220161191996441
1000008201620166636306111
1000009#NULL!1121216113
1000010#NULL!3333316442
1000011201120163333316442
1000012#NULL!3333316441
1000013201620169999996442
1000014200620162242416442
1000015201420162242416221
1000016#NULL!2242416442
1000017201620162242416113
1000018198019813333316441

<colgroup><col span="3"><col><col><col><col><col><col><col span="5"><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>


Thanks a lot in advanced!!

Kind regards, David
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
So header year J1 is 1980 and should fall in the range of start year and end year. Then I would like to return the numerical values in Column J.
 
Upvote 0

Forum statistics

Threads
1,215,944
Messages
6,127,835
Members
449,411
Latest member
adunn_23

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