Help with Excel Formula

luisitocarrion1900

Board Regular
Joined
Oct 30, 2017
Messages
57
What am trying to do is to put a formula under the tittle Column1 that if the date under the header named date in sheet Raw data matches the date under calculation D2 or is withing the 7 days put the words true if not the words false
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
42,530
Office Version
365
Platform
Windows
I am unable to reproduce your problem.
My dates are in d/m/y format but that shouldn't be an issue. In D2 of Calculation I have the date 23/10/2019

I was able to enter your formula into the formula bar after selecting cell K2 and the formula, as expected, auto-filled to the other table rows once I pressed Enter.

<b>Raw Data</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Arial,Arial; font-size:8pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:114px;" /><col style="width:81px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >K</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="background-color:#99ccff; font-size:10pt; ">Date</td><td style="background-color:#99ccff; font-size:10pt; ">Column1</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">31/10/2019 9:12</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">FALSE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="font-size:10pt; text-align:right; ">TRUE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">TRUE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td style="font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="font-size:10pt; text-align:right; ">TRUE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">TRUE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td style="font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="font-size:10pt; text-align:right; ">TRUE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">TRUE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td style="font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="font-size:10pt; text-align:right; ">TRUE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >10</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">TRUE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >11</td><td style="font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="font-size:10pt; text-align:right; ">TRUE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >12</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">TRUE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >13</td><td style="font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="font-size:10pt; text-align:right; ">TRUE</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >14</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">28/10/2019 9:12</td><td style="background-color:#969696; font-size:10pt; text-align:right; ">TRUE</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >K2</td><td >=AND([@Date]>=Calculation!$D$2,[@Date]<Calculation!$D$2+7)</td></tr></table></td></tr></table>
 

Forum statistics

Threads
1,084,749
Messages
5,379,622
Members
401,616
Latest member
YoSquidly

Some videos you may like

This Week's Hot Topics

  • VBA code giving errors and stopping Excel
    Hello Experts, I have this code being used to loop through files in a file path, and copy specific data to another sheet. It is giving me several...
  • Disable MsgBox message
    Morning, I have a userform where if i leave a ComboBox empty i see a MsgBox warning me that i must enter an invoice number. It is this MsgBox i...
  • Macro Recorder into VBA, Copy Paste Data Filled Cells
    Hi Everyone, I have a macro recorder file that takes a selection of data, copies, then pastes into a new sheet on ("A2:B2") The issue is my...
  • Number format changes while pasting into a cell
    Hi, I am trying to paste a number 180204524303 from an email to an excel cell, however, whenever i try to do so , the the paste value appears as...
  • Collating data
    Hello all. Could someone please help. I am trying to pull all column data from multiple sheets (24 I total so far) into 1 master sheet without...
  • Sum Multiple Columns Based on Multiple Criteria
    I am trying to consolidate data by summing columns G through M based on material, plant, vendor, and fiscal year being identical. The period does...
Top