Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default =OR(IF(AND(....),HYPERLINK....

I need to have a formula that says if one cell says CO and another says Y
then another cell links off to the hyperlink otherwise it says pending. This
is fine and it works:

=IF(AND(AQ61="Y",B61="CO"), HYPERLINK($AW$61&C61&".pdf","Approved"),"Pending")


However the cell that says CO can also say PO and these will hyperlink off
to somewhere else so I need to do an OR function. I did a simple version
with TRUE/FALSE instead of the hyperlink and that works fine:


=OR(IF(AND(AQ61="Y",B61="CO"),TRUE,FALSE),IF(AND(A Q61="Y",B61="PO"),TRUE,FALSE))

However when I put the hyperlink in it comes back as #VALUE:

=OR(IF(AND(AQ61="Y",B61="CO"),
HYPERLINK($AW$61&C61&".pdf","Approved"),"Pending") ,IF(AND(AQ61="Y",B61="PO"),
HYPERLINK($AW$60&C61&".pdf","Approved"),"Pending") )


Does anyone have any ideas what I need to change to make it work please?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default =OR(IF(AND(....),HYPERLINK....

Think it's just an error in the IF construct ..

This is incorrect:
=OR(IF(AND(AQ61="Y",B61="CO"),TRUE,FALSE),IF(AND(A Q61="Y",B61="PO"),TRUE,FALSE))


It should be structured as something like this:
=IF(AND(AQ61="Y",B61="CO"),"Hyper1",IF(AND(AQ61="Y ",B61="PO"),"Hyper2","Pending"))

Above applied with your working hyperlinks inserted:

=IF(AND(AQ61="Y",B61="CO"),HYPERLINK($AW$61&C61&". pdf","Approved"),IF(AND(AQ61="Y",B61="PO"),HYPERLI NK($AW$60&C61&".pdf","Approved"),"Pending"))

should work fine
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"zx6roo" wrote:
I need to have a formula that says if one cell says CO and another says Y
then another cell links off to the hyperlink otherwise it says pending. This
is fine and it works:

=IF(AND(AQ61="Y",B61="CO"), HYPERLINK($AW$61&C61&".pdf","Approved"),"Pending")


However the cell that says CO can also say PO and these will hyperlink off
to somewhere else so I need to do an OR function. I did a simple version
with TRUE/FALSE instead of the hyperlink and that works fine:


=OR(IF(AND(AQ61="Y",B61="CO"),TRUE,FALSE),IF(AND(A Q61="Y",B61="PO"),TRUE,FALSE))

However when I put the hyperlink in it comes back as #VALUE:

=OR(IF(AND(AQ61="Y",B61="CO"),
HYPERLINK($AW$61&C61&".pdf","Approved"),"Pending") ,IF(AND(AQ61="Y",B61="PO"),
HYPERLINK($AW$60&C61&".pdf","Approved"),"Pending") )


Does anyone have any ideas what I need to change to make it work please?
Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default =OR(IF(AND(....),HYPERLINK....

You look at these functions for too long you can't see the obvious!
Thanks heaps Max.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default =OR(IF(AND(....),HYPERLINK....

welcome, glad that sorted it for you.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"zx6roo" wrote in message
...
You look at these functions for too long you can't see the obvious!
Thanks heaps Max.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't make hyperlink function work for hyperlink to website Frank B Denman Excel Worksheet Functions 15 February 5th 07 11:01 PM
How do I create a hyperlink to a cell with the hyperlink function S. Bevins Excel Worksheet Functions 2 July 20th 06 08:06 PM
Moving rows with Hyperlink doesn't move hyperlink address Samad Excel Discussion (Misc queries) 15 June 22nd 06 12:03 PM
Hyperlink from one sheet to the hyperlink on another AO Excel Discussion (Misc queries) 2 July 5th 05 11:27 AM
Intra-workbook hyperlink: macro/function to return to hyperlink ce marika1981 Excel Discussion (Misc queries) 3 May 6th 05 05:47 AM


All times are GMT +1. The time now is 12:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"