Can someone help me with these basic questions please?

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
592
Office Version
  1. 365
Platform
  1. Windows
Hello!

I wrote this function but it does not work:

Code:
=IF($I$28<=D17<($I$28+7),G28,C18-$C$28*0.2)

I want the IF function to check the date at D17 to be between the date $I$28 and $I$28 + 1 week. How do I do that?

Secondly, I want to calculate the mathematical function C18-$C$28*0.2 but I want to add that in subsequent cells the term 0.8*$C$28* 0,1,2,3 etc (ie in the first cell I want to add the term 0.8*$C$28*0 and as I drag it to the cells to the right, I want it to add the term 0.8*$C$28*1, the next one 0.8*$C$28*2, the next one 0.8*$C$28*3, etc.


Any hint please?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Heres the first part:

=IF(AND(D17>=$I$28,D17<$I$28+7),TRUE,FALSE)

Not quite sure i know what you ask for in the 2nd part.
 
Upvote 0
Heres the first part:

=IF(AND(D17>=$I$28,D17<$I$28+7),TRUE,FALSE)

Not quite sure i know what you ask for in the 2nd part.

Thanks.

For the second part, I want (for example) this:

In the first cell, calculate 100*0. In the next cell, calculate 100*1, the next 100*2 and so on. How do I express that in Excel?
I understand you may be able to do it in a different way, but I want to express a mathematical calculation that one of the terms is gradually increasing by 1, from the previous cell.

Thanks
 
Upvote 0
How you do that depends on which way you are dragging, across or down.

Down: =100*(ROWS($A$1:A1)-1)
Across: =100*(COLUMNS($A$1:A1)-1)
 
Upvote 0
How you do that depends on which way you are dragging, across or down.

Down: =100*(ROWS($A$1:A1)-1)
Across: =100*(COLUMNS($A$1:A1)-1)

Thanks that's very clever!

And can I ask how to make a formula that will generate the below sequence?

100*0, 100*1, 100*1, 100*1, 100*1 ?

Thanks!
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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
Back
Top