Formula for picking date

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
280
Office Version
  1. 365
Platform
  1. Windows
MS Excel 2007. Columns G and J are "date" formatted, "dd/mm/yyyy.
In Column K the input is either 1 or 2. For example, if column K11 is "1",
L11 should display the date as in G11. If K11 is "2", L11 should display the
date in J11.

G J K L
11 10-05-2018 01-06-2018 1 10-05-2018
12 11-05-2018 02-06-2018 2 02-06-2018

Request formula to do this task.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Perhaps =CHOOSE(K11,L11,G11)

FWIW you have indicated 1 and 2 between double quotes? Are they text ? If so replace K11 with K11*1
 
Last edited:
Upvote 0
Sorry to disturb Mr Arthurbr. G11 date; J11 date; K11 1. (In Col K either 1 or 2). L11 result: If K11 1,
L11 will show the date as in G11. If K11 is 2, then L11 will show the date as in J11.

With above formula suggested in L11, I get Circular reference msg. Request help. I use MS Excel 2007. In K11,
I have entered number 1, in K12 2 , like that without quotes.
 
Upvote 0
Ooops, sorry

=CHOOSE(K11,G11,J11) should do
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,888
Members
449,097
Latest member
dbomb1414

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