How to find next available date inlineScript for condition based copy cells from one sheet to another sheetHow to autofill dates using arrayforumlaspreadsheet Determining days between two dates when criteria metCan't run filter on query results in google sheetsUse Arrayformula to show two times each cellAutomatically increment a COUNTIF date criterionWhat Google Sheet function can i use to Calculate Cash on Hand?Importrange and Query IssueGoogle Sheets - Number of days since the last date a range of cells

What are the real benefits of using Salesforce DX?

Gladys goes shopping

Where can I find visible/radio telescopic observations of the center of the Milky Way galaxy?

Where's this lookout in Nova Scotia?

Plot and know intersection points of multiple lines/functions

What does this symbol on the box of power supply mean?

Website returning plaintext password

Is it possible to play as a necromancer skeleton?

What to keep in mind when telling an aunt how wrong her actions are, without creating further family conflict?

Which melee weapons have the Two-Handed property, but lack Heavy and Special?

what kind of chord progession is this?

Have 1.5% of all nuclear reactors ever built melted down?

How to patch glass cuts in a bicycle tire?

Is real public IP Address hidden when using a system wide proxy in Windows 10?

Should one buy new hardware after a system compromise?

Caught 2 students cheating together on the final exam that I proctored

Python program to take in two strings and print the larger string

A steel cutting sword?

How strong are Wi-Fi signals?

Construct a word ladder

Make 24 using exactly three 3s

Boss wants me to falsify a report. How should I document this unethical demand?

Popcorn is the only acceptable snack to consume while watching a movie

Sitecore 9.0 works with solr 7.2.1?



How to find next available date inline


Script for condition based copy cells from one sheet to another sheetHow to autofill dates using arrayforumlaspreadsheet Determining days between two dates when criteria metCan't run filter on query results in google sheetsUse Arrayformula to show two times each cellAutomatically increment a COUNTIF date criterionWhat Google Sheet function can i use to Calculate Cash on Hand?Importrange and Query IssueGoogle Sheets - Number of days since the last date a range of cells






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I have this demo sheet



https://docs.google.com/spreadsheets/d/1iexvfvQVHUc8BooAxpDg8awf6CDpv80b6Z_etBNPc0M/edit?usp=sharing



What I need is an arrayformula is to find inline the next available date from Col "C" and Col "D" dates, and apply colors depending on it



Also, want to have a "Past" in the dates already past



I have in Col F my expected result, cuz is hard to explain exactly what I need



Any help please.










share|improve this question






























    1















    I have this demo sheet



    https://docs.google.com/spreadsheets/d/1iexvfvQVHUc8BooAxpDg8awf6CDpv80b6Z_etBNPc0M/edit?usp=sharing



    What I need is an arrayformula is to find inline the next available date from Col "C" and Col "D" dates, and apply colors depending on it



    Also, want to have a "Past" in the dates already past



    I have in Col F my expected result, cuz is hard to explain exactly what I need



    Any help please.










    share|improve this question


























      1












      1








      1








      I have this demo sheet



      https://docs.google.com/spreadsheets/d/1iexvfvQVHUc8BooAxpDg8awf6CDpv80b6Z_etBNPc0M/edit?usp=sharing



      What I need is an arrayformula is to find inline the next available date from Col "C" and Col "D" dates, and apply colors depending on it



      Also, want to have a "Past" in the dates already past



      I have in Col F my expected result, cuz is hard to explain exactly what I need



      Any help please.










      share|improve this question
















      I have this demo sheet



      https://docs.google.com/spreadsheets/d/1iexvfvQVHUc8BooAxpDg8awf6CDpv80b6Z_etBNPc0M/edit?usp=sharing



      What I need is an arrayformula is to find inline the next available date from Col "C" and Col "D" dates, and apply colors depending on it



      Also, want to have a "Past" in the dates already past



      I have in Col F my expected result, cuz is hard to explain exactly what I need



      Any help please.







      google-sheets google-sheets-formula






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 24 at 4:20









      player0

      10.8k41335




      10.8k41335










      asked Mar 24 at 4:02









      SATH59SATH59

      579




      579






















          1 Answer
          1






          active

          oldest

          votes


















          0














          =ARRAYFORMULA(QUERY(IFERROR(QUERY(IF(LEN(C2:C), 
          IF((C2:C<TODAY())*(D2:D<TODAY()), "Past",
          IF((C2:C<TODAY())*(D2:D>TODAY()), "On Going now", )), ),
          "where Col1='Past' or Col1='On Going now'"),"");
          QUERY(IF(LEN(C2:C),
          IF((C2:C>TODAY())*(D2:D>TODAY()), "Next Available", ), ),
          "where Col1='Next Available' limit 1"),
          "where Col1 is not null"))


          0






          share|improve this answer

























          • Hi, thank you, it works great, but I have added a line where the dates are occurring now, how can I add "on going now" ?

            – SATH59
            Mar 24 at 4:37











          • and if there is no past dates, it seems is not working, thanks for your help

            – SATH59
            Mar 24 at 4:40











          • Thanks, is working, the only problem is when there are not past dates I'm getting N/A

            – SATH59
            Mar 24 at 5:09











          • @SATH59 fixed... answer updated

            – player0
            Mar 24 at 10:48











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          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%2fstackoverflow.com%2fquestions%2f55320621%2fhow-to-find-next-available-date-inline%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














          =ARRAYFORMULA(QUERY(IFERROR(QUERY(IF(LEN(C2:C), 
          IF((C2:C<TODAY())*(D2:D<TODAY()), "Past",
          IF((C2:C<TODAY())*(D2:D>TODAY()), "On Going now", )), ),
          "where Col1='Past' or Col1='On Going now'"),"");
          QUERY(IF(LEN(C2:C),
          IF((C2:C>TODAY())*(D2:D>TODAY()), "Next Available", ), ),
          "where Col1='Next Available' limit 1"),
          "where Col1 is not null"))


          0






          share|improve this answer

























          • Hi, thank you, it works great, but I have added a line where the dates are occurring now, how can I add "on going now" ?

            – SATH59
            Mar 24 at 4:37











          • and if there is no past dates, it seems is not working, thanks for your help

            – SATH59
            Mar 24 at 4:40











          • Thanks, is working, the only problem is when there are not past dates I'm getting N/A

            – SATH59
            Mar 24 at 5:09











          • @SATH59 fixed... answer updated

            – player0
            Mar 24 at 10:48















          0














          =ARRAYFORMULA(QUERY(IFERROR(QUERY(IF(LEN(C2:C), 
          IF((C2:C<TODAY())*(D2:D<TODAY()), "Past",
          IF((C2:C<TODAY())*(D2:D>TODAY()), "On Going now", )), ),
          "where Col1='Past' or Col1='On Going now'"),"");
          QUERY(IF(LEN(C2:C),
          IF((C2:C>TODAY())*(D2:D>TODAY()), "Next Available", ), ),
          "where Col1='Next Available' limit 1"),
          "where Col1 is not null"))


          0






          share|improve this answer

























          • Hi, thank you, it works great, but I have added a line where the dates are occurring now, how can I add "on going now" ?

            – SATH59
            Mar 24 at 4:37











          • and if there is no past dates, it seems is not working, thanks for your help

            – SATH59
            Mar 24 at 4:40











          • Thanks, is working, the only problem is when there are not past dates I'm getting N/A

            – SATH59
            Mar 24 at 5:09











          • @SATH59 fixed... answer updated

            – player0
            Mar 24 at 10:48













          0












          0








          0







          =ARRAYFORMULA(QUERY(IFERROR(QUERY(IF(LEN(C2:C), 
          IF((C2:C<TODAY())*(D2:D<TODAY()), "Past",
          IF((C2:C<TODAY())*(D2:D>TODAY()), "On Going now", )), ),
          "where Col1='Past' or Col1='On Going now'"),"");
          QUERY(IF(LEN(C2:C),
          IF((C2:C>TODAY())*(D2:D>TODAY()), "Next Available", ), ),
          "where Col1='Next Available' limit 1"),
          "where Col1 is not null"))


          0






          share|improve this answer















          =ARRAYFORMULA(QUERY(IFERROR(QUERY(IF(LEN(C2:C), 
          IF((C2:C<TODAY())*(D2:D<TODAY()), "Past",
          IF((C2:C<TODAY())*(D2:D>TODAY()), "On Going now", )), ),
          "where Col1='Past' or Col1='On Going now'"),"");
          QUERY(IF(LEN(C2:C),
          IF((C2:C>TODAY())*(D2:D>TODAY()), "Next Available", ), ),
          "where Col1='Next Available' limit 1"),
          "where Col1 is not null"))


          0







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 24 at 10:48

























          answered Mar 24 at 4:18









          player0player0

          10.8k41335




          10.8k41335












          • Hi, thank you, it works great, but I have added a line where the dates are occurring now, how can I add "on going now" ?

            – SATH59
            Mar 24 at 4:37











          • and if there is no past dates, it seems is not working, thanks for your help

            – SATH59
            Mar 24 at 4:40











          • Thanks, is working, the only problem is when there are not past dates I'm getting N/A

            – SATH59
            Mar 24 at 5:09











          • @SATH59 fixed... answer updated

            – player0
            Mar 24 at 10:48

















          • Hi, thank you, it works great, but I have added a line where the dates are occurring now, how can I add "on going now" ?

            – SATH59
            Mar 24 at 4:37











          • and if there is no past dates, it seems is not working, thanks for your help

            – SATH59
            Mar 24 at 4:40











          • Thanks, is working, the only problem is when there are not past dates I'm getting N/A

            – SATH59
            Mar 24 at 5:09











          • @SATH59 fixed... answer updated

            – player0
            Mar 24 at 10:48
















          Hi, thank you, it works great, but I have added a line where the dates are occurring now, how can I add "on going now" ?

          – SATH59
          Mar 24 at 4:37





          Hi, thank you, it works great, but I have added a line where the dates are occurring now, how can I add "on going now" ?

          – SATH59
          Mar 24 at 4:37













          and if there is no past dates, it seems is not working, thanks for your help

          – SATH59
          Mar 24 at 4:40





          and if there is no past dates, it seems is not working, thanks for your help

          – SATH59
          Mar 24 at 4:40













          Thanks, is working, the only problem is when there are not past dates I'm getting N/A

          – SATH59
          Mar 24 at 5:09





          Thanks, is working, the only problem is when there are not past dates I'm getting N/A

          – SATH59
          Mar 24 at 5:09













          @SATH59 fixed... answer updated

          – player0
          Mar 24 at 10:48





          @SATH59 fixed... answer updated

          – player0
          Mar 24 at 10:48



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • 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%2fstackoverflow.com%2fquestions%2f55320621%2fhow-to-find-next-available-date-inline%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

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript