Im trying to get calc to input the value of cell C6 into the cell which corresponds to the 24th of each month. Column A has the date values. Ive attached a copy of the sheet for simplicity. So the value of C6 would go into C30, C60, C91 and so on
Rent Account 2021.ods
You can paste the next formula in the range C7:C364 =IF(DAY(A7)=24;C$6;0)
and delete the 0
results.
- Copy formula, select C7.
- Choose menu
Edit
-Paste Unformatted Text
(the same thatCtrl+Shift+Alt+V
); or pressF2
,Ctrl+V
andEnter
. - Copy C7.
- Select C7:C372 (
Ctrl+Shift+End
, andShift+Left Arrow, Left Arrow
). - Choose menu
Edit
-Paste Special
-Paste Special…
(the same thatCtrl+Shift+V
orInsert
), uncheck Text, Numbers and Date & Time, check Formulas, andOK
(orEnter
). - Choose menu
Edit
-Find & Replace…
(the same thatCtrl+H
), in the Find: field type0
, leave the Replace: field empty and Current selection only checked, in the Search in: field selectValues
, clickReplace All
andClose
.
Tested with LibreOffice 6.4.7.2 (x86); OS: Windows 6.1.
Add Answer is reserved for solutions. If you think the answer is not satisfactory, add a comment below, or click edit (below your question) to add more information. Thanks.
Check the mark ( →
) to the left of the answer that solves your question.
Maybe also could use the next formulas:
- B7 (and below):
=IF(AND(WEEKDAY($A7;2)=1;A7<=$A$6);$B$6;"")
- E7 (and below):
=IF(A7<=$A$6;SUM(B$7:D7);"")
.
Perfect thank you
You’re welcome!