Formula to pick dates

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
294
Office Version
  1. 365
Platform
  1. Windows
Excel 2007.
Columns A, B and C : contains dates in dd/mm/yyyy format.

Column D : contains number in single digit (1 in some cells, 2 in some cells; 3 in some cells) (Col D only single digit number either 1 or 2 or 3).


Example of one row:


A1 : 25-04-2018; B1: 27-04-2018; C1: 29-04-2018. D1: 1

Requirement:
Column E1 should pick the date.

If D1: 1, then pick date 25-04-2018 as in A1.

If D1: 2, then pick date 27-04-2018 as in B1.

If D1: 3, then pick date 29-04-2018 as in C1.

Request formula.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi,

This will do it:


Excel 2010
ABCDE
14/25/20184/27/20184/29/201824/27/2018
Sheet7
Cell Formulas
RangeFormula
E1=CHOOSE(D1,A1,B1,C1)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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