Formula to Update Dates

uk747

Well-known Member
Joined
Jul 20, 2011
Messages
843
Office Version
  1. 365
Platform
  1. Windows
Hi i have the data below and another set of data with updated Dates in F4:G6

What I need is to check if the Names below in B2:B11 appear in F4:F6.
If they do enter the new date and if they don't enter the existing Date

e.g. Adam isn't in 2nd list so would be 03/07/1988, Ben appears in 2nd list so would be 12/08/1996 and Carl who doesn't appear would be Blank as his original date is Blank

This formula would appear in Column J and then i can overwrite the original dates in Column C with results of formula
I did an xlookup but got 0s where there were blanks. Added &"" and Dates were formatted as text even used =let to get ""

One thing I noticed was when i copied across they weren't proper blanks e.g when you highlighted all the date column the count was 10 when it should be 7
Only way to get 7 was manually go into each cell that looks like a blank and press delete key

NameDate
Adam
03/07/1988​
Ben
10/05/1985​
Carl
Dave
10/04/1985​
Emily
29/09/1989​
Freda
13/10/1986​
Greg
05/07/1985​
Harry
Isla
Jane
08/01/1990​

Updated Data is
Ben
12/08/1986​
Emily
14/06/1988​
Greg
05/10/1994​
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
@uk747 Does this help?

AutoTraining.xlsm
BCDEFGHIJ
2NameDate
3Adam7/3/887/3/88
4Ben5/10/85Ben12/08/198612/08/1986
5CarlEmily14/06/1988
6Dave4/10/85Greg05/10/19944/10/85
7Emily9/29/8914/06/1988
8Freda10/13/8610/13/86
9Greg7/5/8505/10/1994
10Harry
11Isla
12Jane7/8/857/8/85
Sheet7
Cell Formulas
RangeFormula
J3:J12J3=IFERROR(XLOOKUP(B3:B12,F$4:F$6,G$4:G$6,,,),IF(C3:C12>0,C3:C12,""))
Dynamic array formulas.
 
Upvote 0
Solution
Hi Thanks but it still gives me the same as I've already got but yours is in an array.

I still get the count of 10 when pasting over original values
e.g. Copy J3:G12 and Paste Special as Values in C3. When you highlight C3:C12 at bottom Count says 10 whereas before it was 7
 
Upvote 0
@uk747 Ok, I get it.
This is down to the long-standing anomaly of the 'Absolute Blank' vs Formula Resultant "" when using COUNTA()

Can you explain how the count of 10 rather than 7 impacts badly on your data / result?
 
Upvote 0
Hi

Not sure, its just something I noticed when counting them and wanted to remove if possible.

Wasn't aware of an anomaly with Absolute Blanks so thanks for letting me know. It wasn't a big issue was just confused o_O when I saw result and wanted to avoid possible issues maybe further along the line when analysing the data

For now I'll accept your solution as was neater than mine :)
 
Upvote 0

Forum statistics

Threads
1,223,937
Messages
6,175,525
Members
452,651
Latest member
wordsearch

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