Formula for picking date

Muthukrishnan V

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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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