Why do some numerical dates pull and format correctly and others as zero (0)?

ez08mba

Board Regular
Joined
Nov 1, 2011
Messages
225
Office Version
  1. 2016
Platform
  1. Windows
Problem: My formula to lookup (using INDEX / MATCH) to pull in date values from one workbook to another appears to be working correctly, but some dates just pull in and convert to zero and I'm not sure why?

What I'm trying to do: Is save time rather than copy manually all these over.

The formula in right table 'Custom Field (Actual end)": =IF(MATCH([@[Issue key]],MetricsCapture.xlsx!Table1[Issue key],0),INDEX(MetricsCapture.xlsx!Table1[#Data],MATCH([@[Issue key]],MetricsCapture.xlsx!Table1[Issue key],0),78),"")

Pulling data from the table on the left to the table on the right using that formula:

DateFormatting.png
 
Ok. So if I eliminate a bunch of columns and only provide about a 1/2 dozen and remove some rows for size reasons, while still using the same table and data as before that didn't work - it works. These issue is I cannot provide all the data due to sensitivity. So, not sure where to go from here except knowing something within the table elsewhere may be causing the issue.
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
just copy/paste a portion of the table that condains the look up values. just the table:
MetricsCapture.xlsx!Table1

And, i agree with some of the earlier posts, you have something wrong in your data. So, making a new data set will defeat the purpose of debugging.
Did you do what I asked in the workbook that has Table1 in it?
No I hadn't. No disrespect, I got caught up in the copy paste, but you mean the CountIf and the xl2bb? I can do that because your point about trying to keep to the original data makes sense. I could just remove what cannot be seen.
 
Upvote 0
columns not needed in the calculation can be hidden, or not pasted.
 
Upvote 0
just copy/paste a portion of the table that condains the look up values. just the table:
MetricsCapture.xlsx!Table1

And, i agree with some of the earlier posts, you have something wrong in your data. So, making a new data set will defeat the purpose of debugging.
Did you do what I asked in the workbook that has Table1 in it?

awoohaw,

I think I have something you can play with that is still doing the same thing. ! I saved a new file with the original "source" data and removed sensitive columns. I then added a worksheet with the destination table (which would be the table I need to update) and removed sensitive columns. The destination table includes the formulas that you asked me to try (i.e., Match and CountIF).

Problem, I've installed the xl2bb and Microsoft is blocking it despite I have the "Trusted" security settings for macros and add-ins turned off. Any thoughts on how to correct that or provide this to you? I've been to the MS page on setting up and managing Add-ins. No success there.
 
Upvote 0
That xl2bb Addin has messed up my Excel. It was causing everything to open protected, and Microsoft kept blocking it. So I'm not sure how to post this so you can look at it.
 
Upvote 0
@awoohaw
Finally, with the help from Fluff, here it is finally. I apologize it has been so difficult to get to this point. I appreciate the patience.

Destination table is retrieving from the Source Table. Both tables are included in the same Workbook (MetricsCapture2.xlsx - a saved copy of the original).

Source table:

MetricsCapture2.xlsx
BBL
1Issue keyCustom field (Actual end)
2AMOD-153245041.43056
3AMOD-151545034.43542
4AMOD-149245026.38194
5AMOD-146145034.42083
6AMOD-145945040.61458
7AMOD-143745009.34167
8AMOD-143545028.57778
9AMOD-143345023.48403
10AMOD-142245014.97639
11AMOD-142045002.43125
Source



Destination Table:

MetricsCapture2.xlsx
ABCD
1Issue KeyOriginal FormulaMatch FormulaCountIf Formula
2AMOD-151545034.6024821
3AMOD-1492031
4AMOD-1462#N/A#N/A0
5AMOD-1461041
6AMOD-1460#N/A#N/A0
7AMOD-145945022.9389351
8AMOD-1437061
9AMOD-1435071
10AMOD-143345022.6340381
11AMOD-1422091
12AMOD-1421#N/A#N/A0
13AMOD-142045001.60156101
Destination
Cell Formulas
RangeFormula
B2:B13B2=IF(MATCH([@[Issue Key]],Table1[Issue key],0),INDEX(Table1[#Data],MATCH([@[Issue Key]],Table1[Issue key],0),78),"")
C2:C13C2=MATCH([@[Issue Key]],Table1[Issue key],0)
D2:D13D2=COUNTIF(Table1[Issue key],[@[Issue Key]])
 
Upvote 0
Are you trying to get the data from col BL?
 
Upvote 0
Thanks for posting the data.
I think xl2bb doesn't like using table/column name references in formulas. Or at least they don't copy over well for me.

But, one thing I do notice is that your SOURCE data goes from A to BL which is 63 columns, yet your formula seeks the 78th column in the index data.

Can you just post 3 columns: A, B, C for the source
A: Issue key,
B: Custom Field (Actual Date),
C: What ever the 78th column is.

# ROWS: only the rows where you have a few good matches and some where you have the bad matches.

Then tell us what you want to return in the formula in the destination worksheet.
ROWS: Some ISSUE KEY numbers that are in the list in the first part and some not in the list.

It looks like you want to lookup column B when you want to have a match with an Issue Key (column A).
But, what is the purpose of the other 2 columns in your destination? (Or was it you trying to debug your formula?)

But, again, if your INDEX(Match) formula is actually resolving to a value of 0, it is probably because the lookup cell has a blank in it.
 
Upvote 0
Thanks for posting the data.
I think xl2bb doesn't like using table/column name references in formulas. Or at least they don't copy over well for me.

But, one thing I do notice is that your SOURCE data goes from A to BL which is 63 columns, yet your formula seeks the 78th column in the index data.

Can you just post 3 columns: A, B, C for the source
A: Issue key,
B: Custom Field (Actual Date),
C: What ever the 78th column is.

# ROWS: only the rows where you have a few good matches and some where you have the bad matches.

Then tell us what you want to return in the formula in the destination worksheet.
ROWS: Some ISSUE KEY numbers that are in the list in the first part and some not in the list.

It looks like you want to lookup column B when you want to have a match with an Issue Key (column A).
But, what is the purpose of the other 2 columns in your destination? (Or was it you trying to debug your formula?)

But, again, if your INDEX(Match) formula is actually resolving to a value of 0, it is probably because the lookup cell has a blank in it.
Hi awoohaw!

Great news! That was the issue.... 78 should have been 64 actually. The values in column 78 were a different date value format (27:34.0) but also had blanks which returned 0 as you suspected.

Anyhow, this is why when I would remove columns and rows, and changing 78 to 2, like the examples below, they would return correct values. I just somehow entered a wrong column number that happen to have date values.

I so, so, appreciate your patience with me in getting me to this point and with learning xl2bb (thanks Fluff) so I could post what you needed.

MetricsCapture2.xlsx
AB
1Issue keyCustom field (Actual end)
2AMOD-153245041.43056
3AMOD-151545034.43542
4AMOD-149245026.38194
5AMOD-146145034.42083
6AMOD-145945040.61458
7AMOD-143745009.34167
8AMOD-143545028.57778
9AMOD-143345023.48403
10AMOD-142245014.97639
11AMOD-142045002.43125
12AMOD-141845026.54167
13AMOD-141545005.49792
14AMOD-141345002.43333
15AMOD-139344999.41736
Source



MetricsCapture2.xlsx
ABC
1Issue KeyOriginal FormulaPrevious Formula Value
2AMOD-151545034.43542
3AMOD-149245026.38194was 0
4AMOD-1462#N/A
5AMOD-146145034.42083was 0
6AMOD-1460#N/A
7AMOD-145945040.61458
8AMOD-143745009.34167was 0
9AMOD-143545028.57778was 0
10AMOD-143345023.48403
11AMOD-142245014.97639was 0
12AMOD-1421#N/A
13AMOD-142045002.43125
14AMOD-141845026.54167
Destination
Cell Formulas
RangeFormula
B2:B14B2=IF(MATCH([@[Issue Key]],Table1[Issue key],0),INDEX(Table1[#Data],MATCH([@[Issue Key]],Table1[Issue key],0),2),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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