If/Vlookup need to return multiple results to the same cell

jgold20

Board Regular
Joined
Feb 4, 2018
Messages
135
I have 5 conditions that I am testing in cells C3:C6. If the first if condition is met, I want to display the 1st text message. If condition 1 is not true and if any of C3:C6 is not blank, I need to display multiple text messages from another sheet.




=IF(OR(I9>H9,I10>H10,I11>H11,I12>H12),"Discount Given is greater then Max. Discount",
IF(C3<>"",IFERROR(VLOOKUP(C3,'Company Info'!$A$1:$M$25,13,FALSE),
IF(C4<>"",IFERROR(VLOOKUP(C4,'Company Info'!$A$1:$M$25,13,FALSE),
IF(C5<>"",IFERROR(VLOOKUP(C5,'Company Info'!$A$1:$M$25,13,FALSE),
IF(C6<>"",IFERROR(VLOOKUP(C6,'Company Info'!$A$1:$M$25,13,FALSE),"")))))))
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I was able to get the formula to work(see below formula). I have run into a situation where I have duplicate responses that I do not want. The results from C3:C6 can be the same. I do not want to display the text multiple times. Is there a way to only display the duplicated result 1 time?



=IF(OR(I9>H9,I10>H10,I11>H11,I12>H12),"Discount Given is greater then Max. Discount",
IF(C3<>"",VLOOKUP(C3,'Company Info'!$A$1:$M$25,13,FALSE)&
IF(C4<>"",VLOOKUP(C4,'Company Info'!$A$1:$M$25,13,FALSE)&
IF(C5<>"",VLOOKUP(C5,'Company Info'!$A$1:$M$25,13,FALSE)&
IF(C6<>"",VLOOKUP(C6,'Company Info'!$A$1:$M$25,13,FALSE))))))
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,693
Members
449,048
Latest member
81jamesacct

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