Formula to return the value of the duplicate number

LMill

New Member
Joined
Dec 3, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to find a formula to return the value of the duplicated number in cells that are not right next to each other, but within the same row. In the below example, I need a formula in column I that does the following:
  1. If the variance to on-hand in column D is zero then return the value in column C in column I. I already have an IF formula in column I that does this.
  2. I need column I to do the above and: If the variance in Column D is NOT zero, I need the value that matches in either column C, E, or G. Since Cell D2 is not zero, I need cell I2 to find and list the duplicate or matching value in cells C2, E2, or G2 and return that value (which is 113,700). I cannot find a formula that will do this!
Thank you for your help!

1701641137134.png
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Does this do it?
Book1
ABCDEFGHI
1Hdr1Hdr2Hdr3Hdr4Hdr5Hdr6Hdr7Hdr8Hdr9
223050108,921107,890.00-1,031.00113,700.004,779.00113,700.004,779.00113,700.00
Sheet1
Cell Formulas
RangeFormula
D2,H2,F2D2=C2-$B$2
I2I2=IF(D2=0,0,IF(OR(C2=E2,C2=G2),C2,IF(E2=G2,E2,"no match found")))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,076
Messages
6,122,983
Members
449,092
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top