Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|

Is there a way to achieve the above without the use of the "difference" helper column?
Basically a count on the difference between the A and B columns.
Thanks
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
Can you use VBA? Makes it a piece of piss if you can
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
Na, I don't want to do anything like that lol
Is it possible with formula? I'm sure it should be easy but nothing works ffs
|
RichR
Premium Member
Registered: 17th Oct 01
Location: Waterhouses, Staffordshire
User status: Offline
|
Why can't you keep the difference column?
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
That's no concern of yours
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by Brett
Na, I don't want to do anything like that lol
Using VBA/Macro is the only way i can think of looping through rows. Alternatively, can you not hide the difference column on another (locked) sheet?
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
It's cool, I'll suss it out, fairly certain it can be done. Cheers though, Dom.
|
evilrob
Premium Member
Registered: 16th Mar 12
Location: Your mum's house
User status: Offline
|
How many rows are we talking here?
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
Too many to be using direct cell references if that's what you mean, plus it's a growing list.
|
Gaz
Member
Registered: 24th Aug 03
Location: Widnes, Cheshire
User status: Offline
|
You need a difference column of some sort to query against. Alternatively a SUMPRODUCT formula may help off the top of my head.
[Edited on 07-05-2014 by Gaz]
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
How come you deleted the post about knocking up a spreadsheet? I'm waiting eagerly here 
EDIT: Oh you've changed your tune now lol it was 'easy to do' 5mins ago. I guess the attempt at doing the spreadsheet failed lol Cheers anyway 
[Edited on 07-05-2014 by Brett]
|
Gaz
Member
Registered: 24th Aug 03
Location: Widnes, Cheshire
User status: Offline
|
Haha! Sorry mate will whip one up shortly. It wasn't as easy as I first thought. (My lads bed time first though)
Is this purely limited to two colums with no flexibility to use a 3rd?
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
If a third could be used it's piss easy. I'm setting a challenge here
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|

|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
OMG, so simple! I told you lot! Complete fools, the lot of you 
=SUMPRODUCT(--(B:B-A:A=400))
|
Gaz
Member
Registered: 24th Aug 03
Location: Widnes, Cheshire
User status: Offline
|
ballache!
=SUM(IF(B2-A2=400,1,)+IF(B3-A3=400,1,)+IF(B4-A4=400,1,)+IF(B5-A5=400,1,))
|
Gaz
Member
Registered: 24th Aug 03
Location: Widnes, Cheshire
User status: Offline
|
quote: Originally posted by Brett
OMG, so simple! I told you lot! Complete fools, the lot of you 
=SUMPRODUCT(--(B:B-A:A=400))
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
quote: Originally posted by Gaz
ballache!
=SUM(IF(B2-A2=400,1,)+IF(B3-A3=400,1,)+IF(B4-A4=400,1,)+IF(B5-A5=400,1,))
Mate, you ignored the bit about direct cell references too. Hope you didn't spend too long on that Thanks for you time tho
|
Gaz
Member
Registered: 24th Aug 03
Location: Widnes, Cheshire
User status: Offline
|
quote: Originally posted by Brett
quote: Originally posted by Gaz
ballache!
=SUM(IF(B2-A2=400,1,)+IF(B3-A3=400,1,)+IF(B4-A4=400,1,)+IF(B5-A5=400,1,))
Mate, you ignored the bit about direct cell references too. Hope you didn't spend too long on that Thanks for you time tho
double 
Although, your formula you suggested returns a #value! error when I put it in to the spreadsheet I set up.
|
Gaz
Member
Registered: 24th Aug 03
Location: Widnes, Cheshire
User status: Offline
|
ah, because I had headers to the row...
you learn something new everyday
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
You were on the right track with your sumproduct comment earlier tbf
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
Well, it seems some cells had letters in so I had the same fail 
Alternative...
=SUM(IF(ISNUMBER(B:B-A:A),IF(B:B-A:A=400,1)))
|