Linking two sheets using the AND, IF and OR functions

TheBigHairyGinge

New Member
Joined
Jan 27, 2012
Messages
3
Hi,

I am trying to link two sheets in the following way and for the purpose of ease I'll call the sheets A and B.

IF cell B18 in sheet A is greater than cell B46 in sheet B
AND cell B18 in sheet B is equal to 1 OR 5 OR 10 OR 15 OR 25 OR 50
then cell B90 in sheet B should equal cell B18 in sheet A

Here is the formula I have so far:

=IF(AND((OR('Cub Details'!B18=1)),(OR('Cub Details'!B18=5)),(OR('Cub Details'!B18=10)),(OR('Cub Details'!B18=15)),(OR('Cub Details'!B18=25)),(OR('Cub Details'!B18=50)), ('Cub Details'!B18 > 'Badges - Autumn Term 2011'!B46)),'Cub Details'!B18,"None Due")

Thank you in advance for any help :)

Alex
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I have solved my problem, thank you anyway!

Formula used:

=IF(OR('Cub Details'!B18=1,'Cub Details'!B18=5,'Cub Details'!B18=10,'Cub Details'!B18=15,'Cub Details'!B18=25,'Cub Details'!B18=50)*AND('Cub Details'!B18>'Badges - Autumn Term 2011'!B46),'Cub Details'!B18,"None Due")
 
Upvote 0
Hi Alex,

Because you are checking the value of B18 multiple times with the OR function, you can shorten your formula to this...

=IF(OR('Cub Details'!B18={1,5,10,15,25,50})*AND('Cub Details'!B18>'Badges - Autumn Term 2011'!B46),'Cub Details'!B18,"None Due")

Hope that helps

Matt
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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