Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-18-2017, 06:37 AM
OTPM OTPM is offline Formula Help Windows 10 Formula Help Office 2016
Expert
Formula Help
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default Formula Help

Hi



I am looking for some help with a formula for searching for duplicate entries in two adjacent columns and then adding "0.3" to each of the duplicate column values.
I have Data as follows:
Column D Column E
1 1
3 2
2 2
1 1

I want the duplicate row to become:
1.3 1.3


Any help would be appreciated.

Thanks in advance.

Tony
Reply With Quote
  #2  
Old 10-18-2017, 07:16 AM
ArviLaanemets ArviLaanemets is offline Formula Help Windows 8 Formula Help Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

On fly, let's assume your datarange is D2:E10

Into F2 enter the formula
=$D2 + AND(COUNTIFS($D$2:$D2,$D2)>1,COUNTIFS($E$2:$E2,$E2 )>1)*0,3
Into G2 enter the formula
=$E2 + AND(COUNTIFS($D$2:$D2,$D2)>1,COUNTIFS($E$2:$E2,$E2 )>1)*0,3

Copy F2:G2 down to F10:G10
Reply With Quote
  #3  
Old 10-19-2017, 12:39 AM
OTPM OTPM is offline Formula Help Windows 10 Formula Help Office 2016
Expert
Formula Help
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Hi
Many thanks for the quick response but this does not appear to work.
Kind regards
Tony
Quote:
Originally Posted by ArviLaanemets View Post
On fly, let's assume your datarange is D2:E10

Into F2 enter the formula
=$D2 + AND(COUNTIFS($D$2:$D2,$D2)>1,COUNTIFS($E$2:$E2,$E2 )>1)*0,3
Into G2 enter the formula
=$E2 + AND(COUNTIFS($D$2:$D2,$D2)>1,COUNTIFS($E$2:$E2,$E2 )>1)*0,3

Copy F2:G2 down to F10:G10
Reply With Quote
  #4  
Old 10-19-2017, 01:11 AM
OTPM OTPM is offline Formula Help Windows 10 Formula Help Office 2016
Expert
Formula Help
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Please see attached sample worksheet detailing the challenge. This may need a VBA solution but I am trying to avoid that approach if I can.
Tony
Attached Files
File Type: xlsx Bubble Chart Challenge.xlsx (9.5 KB, 14 views)
Reply With Quote
  #5  
Old 10-19-2017, 04:07 AM
Debaser's Avatar
Debaser Debaser is offline Formula Help Windows 7 64bit Formula Help Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

How is row 9 in your example a duplicate of row 8?

I think you could use:

=C2+COUNTIFS($C$1:$C1,$C2,$D$1:$D1,$D2)*0.3
Reply With Quote
  #6  
Old 10-19-2017, 04:50 AM
OTPM OTPM is offline Formula Help Windows 10 Formula Help Office 2016
Expert
Formula Help
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Hi
That appears to work brilliantly.
Many thanks for your help.
Tony
Reply With Quote
  #7  
Old 10-19-2017, 05:03 AM
ArviLaanemets ArviLaanemets is offline Formula Help Windows 8 Formula Help Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

The formulas work!

In returned workbook, into columns J:K new values for both columns are calculated. In cell N1 FALSE indicates, that there are differences with values in original table - so copy values from J2:K17 into D2:E17 (Use PasteSpecial>Values to copy only values, not formulas!)

When after that in N1 the formula returns TRUE, then there aren't any duplicate rows in D2:E17 anymore, otherwise repeat coping values from J2:K17 into D2:E17.
Attached Files
File Type: xlsx BubbleChartChallenge.xlsx (10.3 KB, 19 views)
Reply With Quote
  #8  
Old 10-19-2017, 08:01 AM
Debaser's Avatar
Debaser Debaser is offline Formula Help Windows 7 64bit Formula Help Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

AND(COUNTIFS($D$2:$D2,$D2)>1,COUNTIFS($E$2:$E2,$E2 )>1)
doesn't actually determine that the duplication happened on the same row for both columns.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with an IF Formula Cbate Excel 1 08-17-2017 07:29 AM
Formula Help Possible to use an existing vlookup formula to also insert correct info and trigger a SUM formula innkeeper9 Excel 2 09-13-2016 08:59 PM
Help With a Formula OTPM Excel 3 05-26-2016 03:42 AM
Need help with dragging a formula and changing a reference column as I drag the formula. LupeB Excel 1 10-22-2015 03:02 PM
Formula Help Help with formula please. AndrewSE Excel 3 04-05-2011 08:50 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:58 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft