Formula to pick dates

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
285
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,216,774
Messages
6,132,649
Members
449,740
Latest member
Stevejhonsy

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