Excel: formula to find a date between two dates based on some cell value












2















I'm working on a huge data and I need to fetch data based on a cell value and a date. I do realize that my task can be done through a macro but I want a simple formula rather.



Problem: I have two excel files, say File1 and File2. The first one looks something like this: Dates are in MM/DD/YYYY format.



  A           B             C
-----------------------------------
Val1 myDate Result
-----------------------------------
AJSKD 12/12/1991
AJSKD 12/12/1992
AJSKD 11/10/1992
ASHDI 01/10/1992


And the second file contains:



  A           B              C                D
-----------------------------------------------------
Val2 data beginDate endDate
-----------------------------------------------------
AJSKD 21ASD 12/10/1992 12/31/1992
AJSKD 23AIO 10/10/1992 11/31/1992
ADSUI 21389 12/01/1993 02/21/1994
MKASI AS123 01/12/1994 04/01/1994
ASHDI 34AS1 01/11/1992 01/31/1992


Now what I want is, I want a filter on AJSKD in File2, something like this: =IF(File1$A2=File2$A:A)



and when this is true, I want another criteria: =IF(AND(mydate>=beginDate,myDate<=endDate)



and when both the condition is true I want to copy the data into the result cell.



Consider an example: I want to fill the result column of A3. So I filter the records in File2 based on the value AJSKD. On filtering I get:



      A           B              C                D
-----------------------------------------------------
Val2 data beginDate endDate
-----------------------------------------------------
AJSKD 21ASD 12/10/1992 12/31/1992
AJSKD 23AIO 10/10/1992 11/31/1992


But since myDate associated with AJSKD in File1 is 12/12/1992. This date falls in between 12/10/1992 and 12/31/1992, I want the data 21ASD and not 23AIO.



So the result should be like this:



  A           B             C
-----------------------------------
Val1 myDate Result
-----------------------------------
AJSKD 12/12/1991 FALSE
AJSKD 12/12/1992 21ASD
AJSKD 11/10/1992 23AIO
ASHDI 01/10/1992 FALSE


Since I have a million records, I can't filter manually and search for the data. So I was trying to come up with the formula which would work on it. The second part works good, i.e., the date search. But I'm unable to build formula for the first part. Can anyone please point me in the right direction.



Thanks in advance.










share|improve this question

























  • When you say File1 and File2, are they 2 different workbooks? If so, it is possible to add File 2 as a new sheet to the workbook that contains File1? Because then it will make it a lot easier to do what you're asking.

    – Rowan Richards
    Jan 24 at 15:17













  • Can there be a maximum of one record in file 2 for which mydate falls within the begindate-enddate range?

    – fixer1234
    Jan 24 at 20:34











  • @fixer1234: There can be more than one record in file 2. So 1 val1 in file1 should be compared with each matching val2 in file2

    – aCoder
    Jan 28 at 7:47











  • @RowanRichards: yes they can be two different workbooks or two different sheets in the same workbook.

    – aCoder
    Jan 28 at 7:47











  • It isn't clear, then, how you know what data to return from file 2 if a record in file 1 can match more than one record in file 2.

    – fixer1234
    Jan 28 at 7:53
















2















I'm working on a huge data and I need to fetch data based on a cell value and a date. I do realize that my task can be done through a macro but I want a simple formula rather.



Problem: I have two excel files, say File1 and File2. The first one looks something like this: Dates are in MM/DD/YYYY format.



  A           B             C
-----------------------------------
Val1 myDate Result
-----------------------------------
AJSKD 12/12/1991
AJSKD 12/12/1992
AJSKD 11/10/1992
ASHDI 01/10/1992


And the second file contains:



  A           B              C                D
-----------------------------------------------------
Val2 data beginDate endDate
-----------------------------------------------------
AJSKD 21ASD 12/10/1992 12/31/1992
AJSKD 23AIO 10/10/1992 11/31/1992
ADSUI 21389 12/01/1993 02/21/1994
MKASI AS123 01/12/1994 04/01/1994
ASHDI 34AS1 01/11/1992 01/31/1992


Now what I want is, I want a filter on AJSKD in File2, something like this: =IF(File1$A2=File2$A:A)



and when this is true, I want another criteria: =IF(AND(mydate>=beginDate,myDate<=endDate)



and when both the condition is true I want to copy the data into the result cell.



Consider an example: I want to fill the result column of A3. So I filter the records in File2 based on the value AJSKD. On filtering I get:



      A           B              C                D
-----------------------------------------------------
Val2 data beginDate endDate
-----------------------------------------------------
AJSKD 21ASD 12/10/1992 12/31/1992
AJSKD 23AIO 10/10/1992 11/31/1992


But since myDate associated with AJSKD in File1 is 12/12/1992. This date falls in between 12/10/1992 and 12/31/1992, I want the data 21ASD and not 23AIO.



So the result should be like this:



  A           B             C
-----------------------------------
Val1 myDate Result
-----------------------------------
AJSKD 12/12/1991 FALSE
AJSKD 12/12/1992 21ASD
AJSKD 11/10/1992 23AIO
ASHDI 01/10/1992 FALSE


Since I have a million records, I can't filter manually and search for the data. So I was trying to come up with the formula which would work on it. The second part works good, i.e., the date search. But I'm unable to build formula for the first part. Can anyone please point me in the right direction.



Thanks in advance.










share|improve this question

























  • When you say File1 and File2, are they 2 different workbooks? If so, it is possible to add File 2 as a new sheet to the workbook that contains File1? Because then it will make it a lot easier to do what you're asking.

    – Rowan Richards
    Jan 24 at 15:17













  • Can there be a maximum of one record in file 2 for which mydate falls within the begindate-enddate range?

    – fixer1234
    Jan 24 at 20:34











  • @fixer1234: There can be more than one record in file 2. So 1 val1 in file1 should be compared with each matching val2 in file2

    – aCoder
    Jan 28 at 7:47











  • @RowanRichards: yes they can be two different workbooks or two different sheets in the same workbook.

    – aCoder
    Jan 28 at 7:47











  • It isn't clear, then, how you know what data to return from file 2 if a record in file 1 can match more than one record in file 2.

    – fixer1234
    Jan 28 at 7:53














2












2








2


2






I'm working on a huge data and I need to fetch data based on a cell value and a date. I do realize that my task can be done through a macro but I want a simple formula rather.



Problem: I have two excel files, say File1 and File2. The first one looks something like this: Dates are in MM/DD/YYYY format.



  A           B             C
-----------------------------------
Val1 myDate Result
-----------------------------------
AJSKD 12/12/1991
AJSKD 12/12/1992
AJSKD 11/10/1992
ASHDI 01/10/1992


And the second file contains:



  A           B              C                D
-----------------------------------------------------
Val2 data beginDate endDate
-----------------------------------------------------
AJSKD 21ASD 12/10/1992 12/31/1992
AJSKD 23AIO 10/10/1992 11/31/1992
ADSUI 21389 12/01/1993 02/21/1994
MKASI AS123 01/12/1994 04/01/1994
ASHDI 34AS1 01/11/1992 01/31/1992


Now what I want is, I want a filter on AJSKD in File2, something like this: =IF(File1$A2=File2$A:A)



and when this is true, I want another criteria: =IF(AND(mydate>=beginDate,myDate<=endDate)



and when both the condition is true I want to copy the data into the result cell.



Consider an example: I want to fill the result column of A3. So I filter the records in File2 based on the value AJSKD. On filtering I get:



      A           B              C                D
-----------------------------------------------------
Val2 data beginDate endDate
-----------------------------------------------------
AJSKD 21ASD 12/10/1992 12/31/1992
AJSKD 23AIO 10/10/1992 11/31/1992


But since myDate associated with AJSKD in File1 is 12/12/1992. This date falls in between 12/10/1992 and 12/31/1992, I want the data 21ASD and not 23AIO.



So the result should be like this:



  A           B             C
-----------------------------------
Val1 myDate Result
-----------------------------------
AJSKD 12/12/1991 FALSE
AJSKD 12/12/1992 21ASD
AJSKD 11/10/1992 23AIO
ASHDI 01/10/1992 FALSE


Since I have a million records, I can't filter manually and search for the data. So I was trying to come up with the formula which would work on it. The second part works good, i.e., the date search. But I'm unable to build formula for the first part. Can anyone please point me in the right direction.



Thanks in advance.










share|improve this question
















I'm working on a huge data and I need to fetch data based on a cell value and a date. I do realize that my task can be done through a macro but I want a simple formula rather.



Problem: I have two excel files, say File1 and File2. The first one looks something like this: Dates are in MM/DD/YYYY format.



  A           B             C
-----------------------------------
Val1 myDate Result
-----------------------------------
AJSKD 12/12/1991
AJSKD 12/12/1992
AJSKD 11/10/1992
ASHDI 01/10/1992


And the second file contains:



  A           B              C                D
-----------------------------------------------------
Val2 data beginDate endDate
-----------------------------------------------------
AJSKD 21ASD 12/10/1992 12/31/1992
AJSKD 23AIO 10/10/1992 11/31/1992
ADSUI 21389 12/01/1993 02/21/1994
MKASI AS123 01/12/1994 04/01/1994
ASHDI 34AS1 01/11/1992 01/31/1992


Now what I want is, I want a filter on AJSKD in File2, something like this: =IF(File1$A2=File2$A:A)



and when this is true, I want another criteria: =IF(AND(mydate>=beginDate,myDate<=endDate)



and when both the condition is true I want to copy the data into the result cell.



Consider an example: I want to fill the result column of A3. So I filter the records in File2 based on the value AJSKD. On filtering I get:



      A           B              C                D
-----------------------------------------------------
Val2 data beginDate endDate
-----------------------------------------------------
AJSKD 21ASD 12/10/1992 12/31/1992
AJSKD 23AIO 10/10/1992 11/31/1992


But since myDate associated with AJSKD in File1 is 12/12/1992. This date falls in between 12/10/1992 and 12/31/1992, I want the data 21ASD and not 23AIO.



So the result should be like this:



  A           B             C
-----------------------------------
Val1 myDate Result
-----------------------------------
AJSKD 12/12/1991 FALSE
AJSKD 12/12/1992 21ASD
AJSKD 11/10/1992 23AIO
ASHDI 01/10/1992 FALSE


Since I have a million records, I can't filter manually and search for the data. So I was trying to come up with the formula which would work on it. The second part works good, i.e., the date search. But I'm unable to build formula for the first part. Can anyone please point me in the right direction.



Thanks in advance.







microsoft-excel






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 28 at 10:27







aCoder

















asked Jan 24 at 14:16









aCoderaCoder

1247




1247













  • When you say File1 and File2, are they 2 different workbooks? If so, it is possible to add File 2 as a new sheet to the workbook that contains File1? Because then it will make it a lot easier to do what you're asking.

    – Rowan Richards
    Jan 24 at 15:17













  • Can there be a maximum of one record in file 2 for which mydate falls within the begindate-enddate range?

    – fixer1234
    Jan 24 at 20:34











  • @fixer1234: There can be more than one record in file 2. So 1 val1 in file1 should be compared with each matching val2 in file2

    – aCoder
    Jan 28 at 7:47











  • @RowanRichards: yes they can be two different workbooks or two different sheets in the same workbook.

    – aCoder
    Jan 28 at 7:47











  • It isn't clear, then, how you know what data to return from file 2 if a record in file 1 can match more than one record in file 2.

    – fixer1234
    Jan 28 at 7:53



















  • When you say File1 and File2, are they 2 different workbooks? If so, it is possible to add File 2 as a new sheet to the workbook that contains File1? Because then it will make it a lot easier to do what you're asking.

    – Rowan Richards
    Jan 24 at 15:17













  • Can there be a maximum of one record in file 2 for which mydate falls within the begindate-enddate range?

    – fixer1234
    Jan 24 at 20:34











  • @fixer1234: There can be more than one record in file 2. So 1 val1 in file1 should be compared with each matching val2 in file2

    – aCoder
    Jan 28 at 7:47











  • @RowanRichards: yes they can be two different workbooks or two different sheets in the same workbook.

    – aCoder
    Jan 28 at 7:47











  • It isn't clear, then, how you know what data to return from file 2 if a record in file 1 can match more than one record in file 2.

    – fixer1234
    Jan 28 at 7:53

















When you say File1 and File2, are they 2 different workbooks? If so, it is possible to add File 2 as a new sheet to the workbook that contains File1? Because then it will make it a lot easier to do what you're asking.

– Rowan Richards
Jan 24 at 15:17







When you say File1 and File2, are they 2 different workbooks? If so, it is possible to add File 2 as a new sheet to the workbook that contains File1? Because then it will make it a lot easier to do what you're asking.

– Rowan Richards
Jan 24 at 15:17















Can there be a maximum of one record in file 2 for which mydate falls within the begindate-enddate range?

– fixer1234
Jan 24 at 20:34





Can there be a maximum of one record in file 2 for which mydate falls within the begindate-enddate range?

– fixer1234
Jan 24 at 20:34













@fixer1234: There can be more than one record in file 2. So 1 val1 in file1 should be compared with each matching val2 in file2

– aCoder
Jan 28 at 7:47





@fixer1234: There can be more than one record in file 2. So 1 val1 in file1 should be compared with each matching val2 in file2

– aCoder
Jan 28 at 7:47













@RowanRichards: yes they can be two different workbooks or two different sheets in the same workbook.

– aCoder
Jan 28 at 7:47





@RowanRichards: yes they can be two different workbooks or two different sheets in the same workbook.

– aCoder
Jan 28 at 7:47













It isn't clear, then, how you know what data to return from file 2 if a record in file 1 can match more than one record in file 2.

– fixer1234
Jan 28 at 7:53





It isn't clear, then, how you know what data to return from file 2 if a record in file 1 can match more than one record in file 2.

– fixer1234
Jan 28 at 7:53










1 Answer
1






active

oldest

votes


















0














Using tables called File1 and File2 and structured references instead of different files, this works as per the screenshot:



=IFERROR(LOOKUP(2,1/((File2[Val2]=[@Val1])*(File2[beginDate]<=[@myDate])*(File2[endDate]>=[@myDate])),File2[data]),FALSE)


enter image description here



You don't want to run this with whole column references. If you have "a million" rows, either turn them into a table and use structured references or use exact ranges for your data, like $A$1:$A$400000



Oh, and I took the liberty of correcting the 31st November to the 30th. My computer liked that better.






share|improve this answer
























  • Hi teylyn. Thanks for the post. Which version of office you used? I'm using Office 365 and this formula doesn't seems to work for me.

    – aCoder
    Jan 28 at 7:48











  • This formula will work in Excel 2007 and later. If you want to copy and paste the formula, you need the tables and columns set up exactly like in my example. If not, you need to replace the table and column names with references to your data in the A1 style. Have you done that?

    – teylyn
    Jan 28 at 18:37













  • Yes I have replaced the table names according to my excel data. Say I have Val1 in column Z, than I would use column Z reference in the formula. But it din't work. Also I had a doubt. Since this formula uses lookup, I wonder how much time it would take for a million records comparison!

    – aCoder
    Jan 29 at 5:53













  • If you want to process a million rows, then you may want to use a different approach. Power Query comes to mind. About not getting the formula to work: post a small sample file with just a few dozen rows on a free file sharing site like Dropbox or OneDrive. Nothing with ads, please. I'll fix the formula for you.

    – teylyn
    Jan 29 at 7:32











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397932%2fexcel-formula-to-find-a-date-between-two-dates-based-on-some-cell-value%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Using tables called File1 and File2 and structured references instead of different files, this works as per the screenshot:



=IFERROR(LOOKUP(2,1/((File2[Val2]=[@Val1])*(File2[beginDate]<=[@myDate])*(File2[endDate]>=[@myDate])),File2[data]),FALSE)


enter image description here



You don't want to run this with whole column references. If you have "a million" rows, either turn them into a table and use structured references or use exact ranges for your data, like $A$1:$A$400000



Oh, and I took the liberty of correcting the 31st November to the 30th. My computer liked that better.






share|improve this answer
























  • Hi teylyn. Thanks for the post. Which version of office you used? I'm using Office 365 and this formula doesn't seems to work for me.

    – aCoder
    Jan 28 at 7:48











  • This formula will work in Excel 2007 and later. If you want to copy and paste the formula, you need the tables and columns set up exactly like in my example. If not, you need to replace the table and column names with references to your data in the A1 style. Have you done that?

    – teylyn
    Jan 28 at 18:37













  • Yes I have replaced the table names according to my excel data. Say I have Val1 in column Z, than I would use column Z reference in the formula. But it din't work. Also I had a doubt. Since this formula uses lookup, I wonder how much time it would take for a million records comparison!

    – aCoder
    Jan 29 at 5:53













  • If you want to process a million rows, then you may want to use a different approach. Power Query comes to mind. About not getting the formula to work: post a small sample file with just a few dozen rows on a free file sharing site like Dropbox or OneDrive. Nothing with ads, please. I'll fix the formula for you.

    – teylyn
    Jan 29 at 7:32
















0














Using tables called File1 and File2 and structured references instead of different files, this works as per the screenshot:



=IFERROR(LOOKUP(2,1/((File2[Val2]=[@Val1])*(File2[beginDate]<=[@myDate])*(File2[endDate]>=[@myDate])),File2[data]),FALSE)


enter image description here



You don't want to run this with whole column references. If you have "a million" rows, either turn them into a table and use structured references or use exact ranges for your data, like $A$1:$A$400000



Oh, and I took the liberty of correcting the 31st November to the 30th. My computer liked that better.






share|improve this answer
























  • Hi teylyn. Thanks for the post. Which version of office you used? I'm using Office 365 and this formula doesn't seems to work for me.

    – aCoder
    Jan 28 at 7:48











  • This formula will work in Excel 2007 and later. If you want to copy and paste the formula, you need the tables and columns set up exactly like in my example. If not, you need to replace the table and column names with references to your data in the A1 style. Have you done that?

    – teylyn
    Jan 28 at 18:37













  • Yes I have replaced the table names according to my excel data. Say I have Val1 in column Z, than I would use column Z reference in the formula. But it din't work. Also I had a doubt. Since this formula uses lookup, I wonder how much time it would take for a million records comparison!

    – aCoder
    Jan 29 at 5:53













  • If you want to process a million rows, then you may want to use a different approach. Power Query comes to mind. About not getting the formula to work: post a small sample file with just a few dozen rows on a free file sharing site like Dropbox or OneDrive. Nothing with ads, please. I'll fix the formula for you.

    – teylyn
    Jan 29 at 7:32














0












0








0







Using tables called File1 and File2 and structured references instead of different files, this works as per the screenshot:



=IFERROR(LOOKUP(2,1/((File2[Val2]=[@Val1])*(File2[beginDate]<=[@myDate])*(File2[endDate]>=[@myDate])),File2[data]),FALSE)


enter image description here



You don't want to run this with whole column references. If you have "a million" rows, either turn them into a table and use structured references or use exact ranges for your data, like $A$1:$A$400000



Oh, and I took the liberty of correcting the 31st November to the 30th. My computer liked that better.






share|improve this answer













Using tables called File1 and File2 and structured references instead of different files, this works as per the screenshot:



=IFERROR(LOOKUP(2,1/((File2[Val2]=[@Val1])*(File2[beginDate]<=[@myDate])*(File2[endDate]>=[@myDate])),File2[data]),FALSE)


enter image description here



You don't want to run this with whole column references. If you have "a million" rows, either turn them into a table and use structured references or use exact ranges for your data, like $A$1:$A$400000



Oh, and I took the liberty of correcting the 31st November to the 30th. My computer liked that better.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 24 at 20:13









teylynteylyn

17.4k22539




17.4k22539













  • Hi teylyn. Thanks for the post. Which version of office you used? I'm using Office 365 and this formula doesn't seems to work for me.

    – aCoder
    Jan 28 at 7:48











  • This formula will work in Excel 2007 and later. If you want to copy and paste the formula, you need the tables and columns set up exactly like in my example. If not, you need to replace the table and column names with references to your data in the A1 style. Have you done that?

    – teylyn
    Jan 28 at 18:37













  • Yes I have replaced the table names according to my excel data. Say I have Val1 in column Z, than I would use column Z reference in the formula. But it din't work. Also I had a doubt. Since this formula uses lookup, I wonder how much time it would take for a million records comparison!

    – aCoder
    Jan 29 at 5:53













  • If you want to process a million rows, then you may want to use a different approach. Power Query comes to mind. About not getting the formula to work: post a small sample file with just a few dozen rows on a free file sharing site like Dropbox or OneDrive. Nothing with ads, please. I'll fix the formula for you.

    – teylyn
    Jan 29 at 7:32



















  • Hi teylyn. Thanks for the post. Which version of office you used? I'm using Office 365 and this formula doesn't seems to work for me.

    – aCoder
    Jan 28 at 7:48











  • This formula will work in Excel 2007 and later. If you want to copy and paste the formula, you need the tables and columns set up exactly like in my example. If not, you need to replace the table and column names with references to your data in the A1 style. Have you done that?

    – teylyn
    Jan 28 at 18:37













  • Yes I have replaced the table names according to my excel data. Say I have Val1 in column Z, than I would use column Z reference in the formula. But it din't work. Also I had a doubt. Since this formula uses lookup, I wonder how much time it would take for a million records comparison!

    – aCoder
    Jan 29 at 5:53













  • If you want to process a million rows, then you may want to use a different approach. Power Query comes to mind. About not getting the formula to work: post a small sample file with just a few dozen rows on a free file sharing site like Dropbox or OneDrive. Nothing with ads, please. I'll fix the formula for you.

    – teylyn
    Jan 29 at 7:32

















Hi teylyn. Thanks for the post. Which version of office you used? I'm using Office 365 and this formula doesn't seems to work for me.

– aCoder
Jan 28 at 7:48





Hi teylyn. Thanks for the post. Which version of office you used? I'm using Office 365 and this formula doesn't seems to work for me.

– aCoder
Jan 28 at 7:48













This formula will work in Excel 2007 and later. If you want to copy and paste the formula, you need the tables and columns set up exactly like in my example. If not, you need to replace the table and column names with references to your data in the A1 style. Have you done that?

– teylyn
Jan 28 at 18:37







This formula will work in Excel 2007 and later. If you want to copy and paste the formula, you need the tables and columns set up exactly like in my example. If not, you need to replace the table and column names with references to your data in the A1 style. Have you done that?

– teylyn
Jan 28 at 18:37















Yes I have replaced the table names according to my excel data. Say I have Val1 in column Z, than I would use column Z reference in the formula. But it din't work. Also I had a doubt. Since this formula uses lookup, I wonder how much time it would take for a million records comparison!

– aCoder
Jan 29 at 5:53







Yes I have replaced the table names according to my excel data. Say I have Val1 in column Z, than I would use column Z reference in the formula. But it din't work. Also I had a doubt. Since this formula uses lookup, I wonder how much time it would take for a million records comparison!

– aCoder
Jan 29 at 5:53















If you want to process a million rows, then you may want to use a different approach. Power Query comes to mind. About not getting the formula to work: post a small sample file with just a few dozen rows on a free file sharing site like Dropbox or OneDrive. Nothing with ads, please. I'll fix the formula for you.

– teylyn
Jan 29 at 7:32





If you want to process a million rows, then you may want to use a different approach. Power Query comes to mind. About not getting the formula to work: post a small sample file with just a few dozen rows on a free file sharing site like Dropbox or OneDrive. Nothing with ads, please. I'll fix the formula for you.

– teylyn
Jan 29 at 7:32


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397932%2fexcel-formula-to-find-a-date-between-two-dates-based-on-some-cell-value%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Сан-Квентин

8-я гвардейская общевойсковая армия

Алькесар