How to apply an IF condition when referencing another workbook and sheet

defender

New Member
Joined
Dec 24, 2017
Messages
41
Hi all,

i would like to know how to apply an IF condition when referencing another workbook and sheet.

so far i have:

=('[running2020.xlsx]method'!C2:50)

the cells in column C from the spreadsheet 'running' and sheet 'method' start AB.00001.20, CD.00001.20, EF.00001.20, GH.00001.20. I would like all references starting EF and GH to be extracted only.

thanks for any help on this
 
Now if you said that earlier I could have given you the answer earlier, I can write formulas but not read minds.

=IF('[running2020.xlsx]method'!C2="","",'[running2020.xlsx]method'!C2)

apologies, and thank you for your help.
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
It's easier to use an error trap, networkdays will throw up a #VALUE! error if either cell contains N/A.

=IFERROR(IF(OR(C2="",D2=""),"",NETWORKDAYS(C2, D2)),"")

If C2 and D2 contain formulas that show "" when there is no data (the formulas from earlier in this thread for example) then you don't need to check if they're blank, the error trap will do that as well. This only works with a formula that shows "", a blank cell with no formula will need the one above.

=IFERROR(NETWORKDAYS(C2,D2),"")
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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