Formula help

YOUNAN

Board Regular
Joined
Feb 10, 2015
Messages
101
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello,

I want to calculate cells when the date is 2013 or earlier I am using the following formula but it says its wrong, can anyone help me with this.

=countif(B34*400+C34*200, "=<2013")

Please advise

Thanks in advance
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
this is an excel file for a church, and 400 & 200 are subscriptions, so I want a formula to count how much every family has to pay and cells B34 & C34 and number of family members .

Thanks
 
Upvote 0
Hi,

I'm taking a guess here.....I'm assuming you want the Count of cells for year 2013, since you are using COUNTIF....

If Columns B and C Only contains a Number representing the Year you're trying to Count, then use formula in E34,
If the Columns contain Full Dates, then use the formula in E42.

Excel 2010
BCDE
34201320155
3520142016
3620152013
3720132018
3820132014
3920172013
4020182017
41
421/5/20139/8/20155
433/4/20145/6/2016
444/5/20154/27/2013
456/6/20139/9/2018
465/4/20137/7/2014
475/7/20173/19/2013
4812/12/20184/20/2017

<colgroup><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet14

Worksheet Formulas
CellFormula
E34=COUNTIF(B34:C40,2013)
E42=SUMPRODUCT(--(YEAR(B42:C48)=2013))

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

<tbody>
</tbody>



Let us know if this is not what you're trying to do, and please explain in detail.

Edit: seems you posted an explanation of what you want while I was posting this, I'm sure someone will get back to you.
 
Last edited:
Upvote 0
this is an excel file for a church, and 400 & 200 are subscriptions, so I want a formula to count how much every family has to pay and cells B34 & C34 and number of family members .

Thanks

I think you'll need to post a few lines of sample data, your explanation here doesn't tell us where the Date/Year is.
 
Upvote 0
Hello


I need a formula that checks when is the member registered and to count how much he should pay for each year from the day he was registered .
so if you can help me and make some changes to my formula

=countif(B34*400+C34*200, "=<2013")

B34 & C34 cells are hidden and they count how many adults and under 18 .
400 & 200 is the amount for adults and under 18.
=< 2013 will count if member was registered in 2013 or before and would be great if result is 0 if member is registered 2014 or after.
for the rest of years I can adjust the formula.


Thanks in advance.

Younan
 
Upvote 0
You still haven't told us Where the information is for the Year, how is the formula going to know if the member registered before, during, or after 2013, where is the registration Date/information?
 
Upvote 0
Hello

Registration date is in cell AI4.

Thanks in advance.

Younan
 
Upvote 0
This works for 1 instance of membership subscription costs, since I don't know if you'll be copying the formula down/across, and I assume by "Registration date", you mean it's an actual Date, not just the Year in AI4:


Excel 2010
BCDEFAI
44/14/2012
33
3423$1,400.00
Sheet14
Cell Formulas
RangeFormula
E34=IF(YEAR(AI4)<=2013,B34*400+C34*200,0)


E34 formula will give 0 as result if registration occurred after 2013.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

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