Reference cells from source worksheet to destination if condition are met

FaezMH

New Member
Joined
Oct 14, 2019
Messages
39
Office Version
  1. 365
Platform
  1. Windows
Good day,

I have the following sample data(excerpt from a large dataset) below and name it as Sheet1:

[TABLE="width: 543"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]NO[/TD]
[TD]DATE[/TD]
[TD]BRAND[/TD]
[TD]ORDER[/TD]
[TD]MODEL[/TD]
[TD]QTY[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]21/8/2019[/TD]
[TD][TABLE="width: 73"]
<tbody>[TR]
[TD="class: xl66, width: 73"]CATHAY[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 105"]
<tbody>[TR]
[TD="class: xl66, width: 105"]C123456[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 138"]
<tbody>[TR]
[TD="class: xl66, width: 138"]AIRBUS[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]21/8/2019[/TD]
[TD]SILKAIR[/TD]
[TD]SA123467[/TD]
[TD]BOEING[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]23/8/2019[/TD]
[TD]GARUDA[/TD]
[TD]G125768[/TD]
[TD]AIRBUS[/TD]
[TD]450[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]24/8/2019[/TD]
[TD]KOREAN[/TD]
[TD]K984721[/TD]
[TD]BOEING[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]26/8/2019[/TD]
[TD]SIA[/TD]
[TD]S239435[/TD]
[TD]AIRBUS[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]26/8/2019[/TD]
[TD]BRITISH[/TD]
[TD]B340789[/TD]
[TD]AIRBUS[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]27/8/2019[/TD]
[TD]JAL[/TD]
[TD]J432576[/TD]
[TD]BOEING[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]28/8/2019[/TD]
[TD]KOREAN[/TD]
[TD]K984234[/TD]
[TD]BOEING[/TD]
[TD]500[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]29/8/2019[/TD]
[TD]KOREAN[/TD]
[TD]K984231[/TD]
[TD]BOEING[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]30/8/2019[/TD]
[TD]QATAR[/TD]
[TD]Q764123[/TD]
[TD]AIRBUS[/TD]
[TD]600[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I would like to reference the cell to sheet2 and sheet3 if condition is met.

For sheet2, I am using the following formula: =IF(Sheet1!$C2<>"KOREAN",Sheet1!A2,IF(Sheet1!C2="KOREAN",Sheet3!A2,"CHECK AGAIN"))

* this means that if the condition is not "KOREAN", then the cell will be copy automatically. However, my problem is in between, I had no4, 8 and 9 showing "check again" status. My question is how can I "eliminate" this "check again"?

Same goes to sheet3 where I am using this formula: =IF(Sheet1!$C2="KOREAN",Sheet1!A2,"CHECK AGAIN").

I am sort of running of idea what to do with this. Is there a better way I can do this. I had like to have Sheet2 showing only non KOREAN result without "check again" status and Sheet3 showing only KOREAN result without "check again" status.

Thank you.
Faez
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi & welcome to MrExcel.
How about


Book1
ABCDEF
1NODATEBRANDORDERMODELQTY
2143698CATHAYC123456AIRBUS200
3243698SILKAIRSA123467BOEING500
4343700GARUDAG125768AIRBUS450
5543703SIAS239435AIRBUS200
6643703BRITISHB340789AIRBUS1000
7743704JALJ432576BOEING300
81043707QATARQ764123AIRBUS600
9
10
11
Sheet2
Cell Formulas
RangeFormula
A2=IFERROR(INDEX(Sheet1!A$2:A$11,AGGREGATE(15,6,(ROW(Sheet1!A$2:A$11)-ROW(Sheet1!A$2)+1)/(Sheet1!$C$2:$C$11<>"Korean"),ROWS($A$2:$A2))),"")


Copy formula down & across
 
Upvote 0
Thanks Fluff. That is a perfect solution!

Appreciate that...
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,276
Messages
6,171,138
Members
452,381
Latest member
Nova88

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