Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 31
Default date calculation

hi

i have a database where column b is date column c is customer name when i
input customer name in the system it should check if the same customer name
appears within 15 days of time from his last transaction.




--
Nisha P
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,696
Default date calculation

so, if I understand correctly, you enter the date in column B, thencustoemr
name in C. Once you do this, you want to be told if the customer has been
added within 15 days of the date you just entered?

If so:

=if(C200="","",if(countif(B$2:B199,"=C200-15")0,"Added within 15
days","Not Added"))

Should work

"nishkrish" wrote:

hi

i have a database where column b is date column c is customer name when i
input customer name in the system it should check if the same customer name
appears within 15 days of time from his last transaction.




--
Nisha P

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 31
Default date calculation

HI Sean the formula returns only one value "Added within 15 days"
--
Nisha P


"Sean Timmons" wrote:

so, if I understand correctly, you enter the date in column B, thencustoemr
name in C. Once you do this, you want to be told if the customer has been
added within 15 days of the date you just entered?

If so:

=if(C200="","",if(countif(B$2:B199,"=C200-15")0,"Added within 15
days","Not Added"))

Should work

"nishkrish" wrote:

hi

i have a database where column b is date column c is customer name when i
input customer name in the system it should check if the same customer name
appears within 15 days of time from his last transaction.




--
Nisha P

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,722
Default date calculation

Assuming you input customer name into D2, this will give a count of how many
occurences of that name appear within 15 days of last entry:

=SUMPRODUCT(--(C2:C100=D2),--(B2:B100+15=MAX((C2:C100=D2)*(B2:B100))))-1


--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"nishkrish" wrote:

hi

i have a database where column b is date column c is customer name when i
input customer name in the system it should check if the same customer name
appears within 15 days of time from his last transaction.




--
Nisha P

  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 31
Default date calculation

Hi Luke i am not good with formula evalution when i pasted it it gives error
and returns "value" and or if i paste the formula in d2 #REF!
i am sure i am suppose to modify the formula but littele in depth what the
formula does (-- and you have given a range c2 to c100
--
Nisha P


"Luke M" wrote:

Assuming you input customer name into D2, this will give a count of how many
occurences of that name appear within 15 days of last entry:

=SUMPRODUCT(--(C2:C100=D2),--(B2:B100+15=MAX((C2:C100=D2)*(B2:B100))))-1


--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"nishkrish" wrote:

hi

i have a database where column b is date column c is customer name when i
input customer name in the system it should check if the same customer name
appears within 15 days of time from his last transaction.




--
Nisha P



  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 31
Default date calculation

luke

i modified the formula i dont know if it is right cause now it shows "0"
=SUMPRODUCT(C2:C100=D2)*(B2:B100+15)=MAX((C2:C100 =D2)*(B2:B100+15)-1)
--
Nisha P


"Luke M" wrote:

Assuming you input customer name into D2, this will give a count of how many
occurences of that name appear within 15 days of last entry:

=SUMPRODUCT(--(C2:C100=D2),--(B2:B100+15=MAX((C2:C100=D2)*(B2:B100))))-1


--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"nishkrish" wrote:

hi

i have a database where column b is date column c is customer name when i
input customer name in the system it should check if the same customer name
appears within 15 days of time from his last transaction.




--
Nisha P

  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,355
Default date calculation

It looks like you have an array formula in there. You need to commit with
CTRL ALT ENTER so that it works properly.

HTH,
Barb Reinhardt

"nishkrish" wrote:

luke

i modified the formula i dont know if it is right cause now it shows "0"
=SUMPRODUCT(C2:C100=D2)*(B2:B100+15)=MAX((C2:C100 =D2)*(B2:B100+15)-1)
--
Nisha P


"Luke M" wrote:

Assuming you input customer name into D2, this will give a count of how many
occurences of that name appear within 15 days of last entry:

=SUMPRODUCT(--(C2:C100=D2),--(B2:B100+15=MAX((C2:C100=D2)*(B2:B100))))-1


--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"nishkrish" wrote:

hi

i have a database where column b is date column c is customer name when i
input customer name in the system it should check if the same customer name
appears within 15 days of time from his last transaction.




--
Nisha P

  #8   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 31
Default date calculation

I tried that it doesnt work what exactly you mean by Ctrl alt enter how do i
cummit that.
--
Nisha P


"Barb Reinhardt" wrote:

It looks like you have an array formula in there. You need to commit with
CTRL ALT ENTER so that it works properly.

HTH,
Barb Reinhardt

"nishkrish" wrote:

luke

i modified the formula i dont know if it is right cause now it shows "0"
=SUMPRODUCT(C2:C100=D2)*(B2:B100+15)=MAX((C2:C100 =D2)*(B2:B100+15)-1)
--
Nisha P


"Luke M" wrote:

Assuming you input customer name into D2, this will give a count of how many
occurences of that name appear within 15 days of last entry:

=SUMPRODUCT(--(C2:C100=D2),--(B2:B100+15=MAX((C2:C100=D2)*(B2:B100))))-1


--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"nishkrish" wrote:

hi

i have a database where column b is date column c is customer name when i
input customer name in the system it should check if the same customer name
appears within 15 days of time from his last transaction.




--
Nisha P

  #9   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default date calculation

Barb meant CTRL + SHIFT + ENTER because the formula is an "array" formula.

Hold CTRL and SHIFT keys down then hit ENTER key.

Your formula will receive curly braces around it {formula}

Help explains array formulas.


Gord Dibben MS Excel MVP


On Fri, 21 Aug 2009 12:33:01 -0700, nishkrish
wrote:

I tried that it doesnt work what exactly you mean by Ctrl alt enter how do i
cummit that.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A specific date used for calculation of a new date Ditte Excel Discussion (Misc queries) 7 July 17th 09 08:00 AM
Date Calculation (from entered date / 1yr later in next field) ajaminb Excel Worksheet Functions 6 September 29th 08 02:11 PM
End Date Calculation (adding a start date duration) Silena K-K Excel Discussion (Misc queries) 5 January 25th 08 04:27 PM
Tricky Date calculation: How to calculate a future date [email protected] Excel Discussion (Misc queries) 9 August 11th 06 04:24 AM
Due Date Calculation? Randy New Users to Excel 11 July 14th 05 07:44 PM


All times are GMT +1. The time now is 09:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"