Survey data to capture full month

Oredo

New Member
Joined
Jan 15, 2018
Messages
13
Hello everyone,
I'm abit in a pickle and would be grateful for some help.
My data:
Issued
Answered
Result
31/05/2019
31/05/2019
07/06/2019
28/06/2019
28/06/2019

<colgroup><col style="mso-width-source:userset;mso-width-alt:3730;width:77pt" width="102"> </colgroup><tbody>
</tbody>

<colgroup><col width="102"></colgroup><tbody>
</tbody>
31/05/2019
01/06/2019
07/06/2019
30/06/2019
01/07/2019

<colgroup><col style="mso-width-source:userset;mso-width-alt:3510;width:72pt" width="96"> </colgroup><tbody>
</tbody>
0
1
1
1
0

<colgroup><col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> </colgroup><tbody>
</tbody>

<tbody>
</tbody>
So i got survey coming out only on weekdays (issued), but responses might come out on weekends (answered). I would like to have "Result" column as formula to capture results only for "June". My attempts : =IF([@Answered]< MAX([Issued],1,0) wont reach last day of the June, and just comparing months wont capture anything sent month before.
Is there better approach to this to really capture all dates to the end of the month, when last days of the month (from 28 to 31st) are weekends?<max([issued] wont="" reach="" last="" day="" of="" the="" june,="" and="" just="" comparing="" months="" capture="" anything="" sent="" month="" before.

</max([issued]>
 
Last edited:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Caleeco

Well-known Member
Joined
Jan 9, 2016
Messages
966
Hi,

If i've understood your request correctly, you would like the result field to show '1' if either
- The survey was isused in June
- The surver was responded to in june (regardless of when it was issued)

ABC
1IssuedAnsweredResult
231/05/201931/05/20190
331/05/201901/06/20191
407/06/201907/06/20191
528/06/201930/06/20191
628/06/201901/07/20191

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
C2=IF(OR(MONTH(A2)=6,MONTH(B2)=6),1,0)
C3=IF(OR(MONTH(A3)=6,MONTH(B3)=6),1,0)
C4=IF(OR(MONTH(A4)=6,MONTH(B4)=6),1,0)
C5=IF(OR(MONTH(A5)=6,MONTH(B5)=6),1,0)
C6=IF(OR(MONTH(A6)=6,MONTH(B6)=6),1,0)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


Let me know if this formula does what you want
Cheers

Caleeco
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,619
Office Version
  1. 2007
Platform
  1. Windows
I would like to have "Result" column as formula to capture results only for "June". <max([issued] wont="" reach="" last="" day="" of="" the="" june,="" and="" just="" comparing="" months="" capture="" anything="" sent="" month="" before.

</max([issued]>


You just need to check the "Answered" date, so it could be:


<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:105.5px;" /><col style="width:126.42px;" /><col style="width:76.04px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="background-color:#ffff00; font-weight:bold; text-align:center; ">Issued</td><td style="background-color:#ffff00; font-weight:bold; text-align:center; ">Answered</td><td style="background-color:#ffff00; font-weight:bold; text-align:center; ">Result</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="text-align:right; ">31/05/2019</td><td style="text-align:right; ">31/05/2019</td><td style="text-align:right; ">0</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="text-align:right; ">31/05/2019</td><td style="text-align:right; ">01/06/2019</td><td style="text-align:right; ">1</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="text-align:right; ">07/06/2019</td><td style="text-align:right; ">07/06/2019</td><td style="text-align:right; ">1</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td style="text-align:right; ">28/06/2019</td><td style="text-align:right; ">30/06/2019</td><td style="text-align:right; ">1</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td style="text-align:right; ">28/06/2019</td><td style="text-align:right; ">01/07/2019</td><td style="text-align:right; ">0</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></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 >C2</td><td >=IF(MONTH(B2)=6,1,0)</td></tr></table></td></tr></table>
 

Oredo

New Member
Joined
Jan 15, 2018
Messages
13
open

another edit, does not want to insert real code not sure what i;m doing wrong, 1 sec let me get picture up<roundup(max([issued]),0),1,if([@answered]></roundup(max([issued]),0),1,if([@answered]><roundup(max([issued],0)1,if([@answered]><roundup(max([issued]),0),1,< html=""></roundup(max([issued]),0),1,<></roundup(max([issued],0)1,if([@answered]>
 
Last edited:

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,619
Office Version
  1. 2007
Platform
  1. Windows
I did not understand.
Did any option work for you?

You could upload a copy of your file to a free site such www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. If the workbook contains confidential information, you could replace it with generic data.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,471
Messages
5,636,501
Members
416,919
Latest member
twc2c

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
Top