Looking to create a formula:
If 2 cells within range A45:D45 are the same value then VLOOKUP(A45,$B3:$E45,20,FALSE) otherwise VLOOKUP(A45,$B3:$E45,3,FALSE). The problem I have is that the value could be anything.
Can anyone help.
Looking to create a formula:
If 2 cells within range A45:D45 are the same value then VLOOKUP(A45,$B3:$E45,20,FALSE) otherwise VLOOKUP(A45,$B3:$E45,3,FALSE). The problem I have is that the value could be anything.
Can anyone help.
Try
=IF(OR(COUNTIF(A45:D45,A45)>1,COUNTIF(A45:D45,B45)>1,COUNTIF(A45:D45,C45)>1,COUNTIF(A45:D45,D45)>1),VLOOKUP(A45,$B3:$E45,20,FALSE),VLOOKUP(A45,$B3:$E45,3,FALSE))
Regards
Fotis.
-This is my Greek whisper to Europe.
--Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Advanced Excel Techniques: http://excelxor.com/
--KISS(Keep it simple Stupid)
--Bring them back.
---See about Acropolis of Athens.
--Visit Greece.
You could try something like this:
=if(countif(A45:D45,A45)=2,VLOOKUP(A45,$B3:$E45,20,FALSE),VLOOKUP(A45,$B3:$E45,3,FALSE))
but that will only check for 2 cells being the same as A45, and it is not clear if that is what you want. If you are looking for any 2 cells in A45:D45 being the same, then you could try this:
=if(OR(countif(A45:D45,A45)=2,countif(B45:D45,B45)=2,countif(C45:D45,C45)=2),VLOOKUP(A45,$B3:$E45,20,FALSE),VLOOKUP(A45,$B3:$E45,3,FALSE))
If that isn't what you need, then please try to describe your requirements more clearly.
Hope this helps.
Pete
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks