d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > [question] Microsoft Excel
12Next
Add Reply New Topic New Poll
Member
Posts: 11,881
Joined: Aug 17 2007
Gold: 0.00
Jul 2 2013 12:03pm
Quote (MidnightRider @ Jul 2 2013 01:16pm)
I am attempting to apply conditional formatting to an Excel spreadsheet on a row by row basis.

For each row that contains a value, I would like to search the row for duplicate values and format any duplicates.

I know this could be done by hand simply by manually applying conditional formatting to each row (either writing the formula longways or using the format painter), but there must be a way to automate the process.

If there isn't an easy way to do this within Excel's GUI, I'm guessing there is in VB (in which I have no experience).

Any insight?


Thanks!
Member
Posts: 11,881
Joined: Aug 17 2007
Gold: 0.00
Jul 3 2013 08:58am
Bump
Member
Posts: 11,881
Joined: Aug 17 2007
Gold: 0.00
Jul 4 2013 02:56pm
Bump for interest.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jul 4 2013 03:16pm
i'm not clear what you're trying to do. if you have a formula already that works for a single row, why can't you just apply it to the others?
Member
Posts: 11,881
Joined: Aug 17 2007
Gold: 0.00
Jul 4 2013 03:27pm
Quote (carteblanche @ Jul 4 2013 05:16pm)
i'm not clear what you're trying to do. if you have a formula already that works for a single row, why can't you just apply it to the others?


I can, but I would have to apply the formula on a row by row basis.

What if I want to look for duplicates in 1000+ rows?

Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jul 4 2013 03:38pm
this is what i'm not understanding. why can't you just copy the formula? drag the corner to all the rows? i can do that with calcultaion formulas, so i figured it works for all formulas



This post was edited by carteblanche on Jul 4 2013 03:42pm
Member
Posts: 11,881
Joined: Aug 17 2007
Gold: 0.00
Jul 4 2013 04:27pm
Quote (carteblanche @ Jul 4 2013 05:38pm)
this is what i'm not understanding. why can't you just copy the formula? drag the corner to all the rows? i can do that with calcultaion formulas, so i figured it works for all formulas

http://www.youtube.com/watch?v=_d_whmDNAEE


Ahh ok.
The problem is that I haven't actually written a formula to search for duplicates because excel already has a conditional formatting option which does exactly what I'm looking to do.

However, as far as I know, conditional formatting is applied to a range based on your selection, so selecting the rest of the worksheet would apply the formatting to that entire range, rather than the range =$1:$1, =$2: $2...etc.
Member
Posts: 11,881
Joined: Aug 17 2007
Gold: 0.00
Jul 4 2013 04:33pm
Quote (MidnightRider @ Jul 4 2013 06:27pm)
Ahh ok.
The problem is that I haven't actually written a formula to search for duplicates because excel already has a conditional formatting option which does exactly what I'm looking to do.   

However, as far as I know, conditional formatting is applied to a range based on your selection, so selecting the rest of the worksheet would apply the formatting to that entire range, rather than the range =$1:$1, =$2: $2...etc.



Edit: I meant to edit my previous post, not post a reply! My bad.

I'm looking for a method to apply this formatting to a worksheet with data in n rows - without having to do so by hand.



This post was edited by MidnightRider on Jul 4 2013 04:34pm
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jul 4 2013 05:37pm
the $ is an anchor so the formula acts on the exact column/row/cell. so remove the $ if you want it to apply to the active row or column instead of that specific one
Member
Posts: 11,881
Joined: Aug 17 2007
Gold: 0.00
Jul 4 2013 06:06pm
Quote (carteblanche @ Jul 4 2013 07:37pm)
the $ is an anchor so the formula acts on the exact column/row/cell. so remove the $ if you want it to apply to the active row or column instead of that specific one


I know how absolute and relative cell referencing work, and I'm still not catching your drift.

If this were a formula I'd written in the cell rather than conditional formatting, then dragging down the rows would work; the formula would update the cell references accordingly.

But I can't see the algorithm for the "find duplicates" format. All I can do is select a range for which to apply it - a range that I would like to break into rows.

This post was edited by MidnightRider on Jul 4 2013 06:06pm
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll