Put a value to a cell only if two values of two other columns are the same

antstyl

New Member
Joined
Mar 1, 2015
Messages
14
Hello everyone,
i tried to search and find what I am looking for but with no success probably because I cannot describe it very well. I will try to explain what I need with a picture.
Thanks for your assistance in advance.


yVz36Q0
nN14kHN.png
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
In cell K2 try this and drag it down:

=IF(SUMPRODUCT((I2=$D$2:$D$7)*($E$2:$E$7))=0,"",SUMPRODUCT((I2=$D$2:$D$7)*($E$2:$E$7)))
 
Upvote 0
Thanks but it gets me a #VALUE mesage on the cell..
I am not sure still if I have explained it well. I need all the values of the column "orofos" to be put next to the appropriate address_id
 
Upvote 0
Hey, it is likely to do with the fact that your column I is not numeric - how have you generated column I? and if its generated from column A then how is column A generated?
 
Upvote 0
Column A is generated from a database export and column I is a copy of column A.
But I have changed the format to Number and no change.

Will it help if i attach the excel file?
 
Upvote 0
If changing col I to numbers did not work then sure go for it - as long as there's no sensitive information being attached!
 
Upvote 0
Hey,

I had a look at this, it had greek symbols in it, assuming that's fine(?)

I put the formula in column L

L2:
Code:
IF(SUMPRODUCT((J2=$F$2:$F$21)*(ISNUMBER($G$2:$G$21)))=0,"",INDEX($F$2:$G$21,MATCH(J2,$F$2:$F$21,FALSE),2))

It only picked up where the ID was 43 (and so it should according to the sheet I saw)
 
Upvote 0
I have run again the formula from another computer and it doesn't popup any error but the result is empty cells.

Please find here below the same excel with the formula that you gave me in L column.

https://ufile.io/rezs7a5k
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,007
Members
448,935
Latest member
ijat

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