If Statement with linked worksheets

samira

New Member
Joined
Aug 25, 2011
Messages
39
Hi! I am trying to write an If statement by linking 2 worksheets. This is the formula that I am trying to use =IF(G6=Sheet1!C2,Sheet4!P12,IF(OR(G6=Sheet1!C4,Sheet5!P14),))

The funny thing is that it is working for the first part but not for the second part.

Note : Cell G6 gets updated based on macro, so it picks up value from sheet1. So G6 can change and I want to write an IF statement so that when G6 changes value should get updated in the other cell.

Is this doable or is their any other solution?
Please help. Thanks
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Welcome to the Board!

The end of your formula seems to be missing some arguments:
=IF(G6=Sheet1!C2,Sheet4!P12,IF(OR(G6=Sheet1!C4,Sheet5!P14),))
The second IF statements checks for two conditions, but does nothing with the results, True or False.

Are there some typos?
Did it get chopped off?
What is it supposed to do?
 
Upvote 0
Hi, The second If statement should return the excate value from the cell P14 in the other sheet.
Thanks!
 
Upvote 0
Can you explain, in plan English, exactly how you would like the formula to work, including what to return if none of your conditions are met?
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,903
Members
452,948
Latest member
Dupuhini

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