mulitple IFs

k_babb

Board Regular
Joined
Mar 28, 2011
Messages
71
i have a spreadsheet that does a vlookup if cell A7 has text in it which i want to display as a hyperlink
the formula below works great but i dont want it to display anything if the vlookup does not contain any text so i have been trying to insert another IF in the vlookup but cant get it to work

=IF(A7>0,(HYPERLINK(VLOOKUP(A7,Data!A:C,2,FALSE),"File Link")),"")

any help would be great
 

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 have a spreadsheet that does a vlookup if cell A7 has text in it which i want to display as a hyperlink
the formula below works great but i dont want it to display anything if the vlookup does not contain any text so i have been trying to insert another IF in the vlookup but cant get it to work

=IF(A7>0,(HYPERLINK(VLOOKUP(A7,Data!A:C,2,FALSE),"File Link")),"")

any help would be great
Maybe this...

=IF(A7>0,IF(VLOOKUP(A7,Data!A:C,2,0)<>"",HYPERLINK(VLOOKUP(A7,Data!A:C,2,0),"File Link"),""),"")
 
Upvote 0
If you have Excel 2007 or later, try this regular formula:
Code:
=IFERROR(HYPERLINK(VLOOKUP(A7,Data!A:C,2,FALSE),"File Link"),"")
Otherwise, try this one:
Code:
=IF(ISNUMBER(MATCH(A7,Data!A:A,0)),HYPERLINK(VLOOKUP(A7,Data!A:C,2,FALSE),"File Link"),"")
Does that help?
 
Last edited:
Upvote 0
thanks for that still trying to get my head around the bigger formulas but now i have put it in the spreadsheet it makes more sense
thanks T.valko:)
 
Upvote 0

Forum statistics

Threads
1,215,737
Messages
6,126,573
Members
449,318
Latest member
Son Raphon

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