Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Deleting by date automatically

Yes, if you want to add two variables, the symbol to use is +.
--
David Biddulph

"Bryan De-Lara" wrote in message
...
Well, as I am not that good, or should I say that well up on Excel I
didn't know that you could use + between, another snippet filed for future
use, Thank you.

Bryan.

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Perhaps you might want to think about what you're achieving with each of
the double unary minuses?

Why have you used
=SUMPRODUCT(--(D4:D2035="d"))--(--SUMPRODUCT(--(D4:D2035="HD"))*0.5)
instead of
=SUMPRODUCT(--(D4:D2035="d"))+SUMPRODUCT(--(D4:D2035="HD"))*0.5 ?
--
David Biddulph

"Bryan De-Lara" wrote in message
...
Thanks David, I did play with it again yesterday and found this works,
=SUMPRODUCT(--(D4:D2035="d"))--(--SUMPRODUCT(--(D4:D2035="HD"))*0.5)
Not exactly the same as yours, but at least I managed it...thanks.

Bryan.

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Look in Excel help for the syntax of the functions you are using, and
look at the syntax of the formula sugested earlier. Think about what
the formula is doing, and compare that with what you want it to do.

If you are struggling to debug your formula, break it up into
manageable chunks and see what each part is doing.
You could put =SUMPRODUCT(--(D4:D2935="H")) in H1,
=SUMPRODUCT(--(D4:D2935="HD"=0.5)) in H2, and =H1--H2 in H3.
If it still isn't making sense to you, look at syntax of each of those
in turn.
--
David Biddulph

"Bryan De-Lara" wrote in message
...
Tom, I have been playing today with my nice new workbook. One thing I
forgot to do is to try and put holidays on the sheet, sometimes people
take half days so I tried to modify the formula from
=SUMPRODUCT(--(D4:D2935="H")) to
=SUMPRODUCT(--(D4:D2935="H"))--SUMPRODUCT(--(D4:D2935="HD"=.5)) but it
registers 2 instead of 1.5. Can you tell me where I am going wrong
please.
Bryan.

"Bryan De-Lara" wrote in message
...
Tom,

How can I thank you enough. Everything works greaaat thanks. Without
the help of people like yourself, there would be a lot of frustrated
people.
I must admit though, I've been dong this project for quite sometime,
and I do try my best with the help pages etc, but there are just some
things that we need help with.
No doubt when I start my next project I will need more help.
Thanks a million times for your time.

Bryan.

P.S. All my questions have been answered and completed.


"TomPl" wrote in message
...
Bryan,

You indicated that the formula in cell D2948 is:
=SUM(D6:D2936)

To exclude stale "1"s the formula should be:
=SUMPRODUCT(--(D5:D2936=1),--($A5:$A2936=TODAY()-365))

The dollar signs prevent the "A" from changing to "B", "C", "D" when
you
copy the formula accross the row.

I like these types of formulas at the top of the data but that is up
to you.
As long as it works, and I hope it does.

Tom










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
automatically deleting blank rows? childofthe1980s Excel Discussion (Misc queries) 3 April 24th 08 04:20 PM
Deleting empty rows automatically Bigweed Excel Discussion (Misc queries) 2 September 13th 06 09:39 PM
Deleting rows from a worksheet automatically mg_sv_r Excel Worksheet Functions 2 May 19th 06 03:45 PM
Deleting the same character automatically in each cell fuzzyjon Excel Worksheet Functions 3 May 15th 06 02:45 PM
Deleting things automatically in Excel Martin Excel Discussion (Misc queries) 1 March 20th 06 07:26 PM


All times are GMT +1. The time now is 12:23 PM.

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"