#2   Report Post  
Sandy Mann
 
Posts: n/a
Default

Hi Biff,

"Biff" wrote in message
...
I don't see it.

No, it was me that didn't see it <g

The OP said:

vehicle no start km end km tyre location
x123 56 65 4
x123 65 75 1
x123 75 89 4


i want to sum the distance the vehicle x123 has travelled when tyre
location is 4.

the result: 89-65=34.


As I, (and I think Bob), read it, the OP was asking for the total kilometres
dirven while the tyre location was 4
ie (65-56) + (89-75) = 23

I obviously misunderstood what the OP was meaning by 'tyre location' and I
assume now, (as you saw from the start), that the tyre was changed at 65 and
again at 89 kilometres which is what you formula correctly returned.

--
Regards


Sandy

Replace@mailinator with @tiscali.co.uk


"Biff" wrote in message
...
I don't see it.

???

Biff

"Sandy Mann" wrote in message
...
Biff,

I assume that you have worked out by now that there is a flaw in the OP's
logic that by giving him/her what he/she asked for you have continued.

--
Rergards


Sandy

Replace@mailinator with @tiscali.co.uk


"Biff" wrote in message
...
Hi!

the result: 89-65=34.

You sure it isn't 24?

Try this entered as an array using the key combo of CTRL,SHIFT,ENTER:

=MAX(IF((A1:A3="x123")*(D1:D3=4),C1:C3))-MIN(IF((A1:A3="x123")*(D1:D3=4),C1:C3))

Biff

"cjjoo" wrote in
message ...

THEIS IS MY PROBLEM:


vehicle no start km end km tyre location
x123 56 65 4
x123 65 75 1
x123 75 89 4


i want to sum the distance the vehicle x123 has travelled when tyre
location is 4.

the result: 89-65=34.

Can i use sum product?


--
cjjoo
------------------------------------------------------------------------
cjjoo's Profile:
http://www.excelforum.com/member.php...o&userid=26916
View this thread:
http://www.excelforum.com/showthread...hreadid=474676









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
Sumproduct Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 10:38 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"