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:


<tbody>
</tbody>
NODATEBRANDORDERMODELQTY
121/8/2019
CATHAY

<tbody>
</tbody>
C123456

<tbody>
</tbody>
AIRBUS

<tbody>
</tbody>
200
221/8/2019SILKAIRSA123467BOEING500
323/8/2019GARUDAG125768AIRBUS450
424/8/2019KOREANK984721BOEING300
526/8/2019SIAS239435AIRBUS200
626/8/2019BRITISHB340789AIRBUS1000
727/8/2019JALJ432576BOEING300
828/8/2019KOREANK984234BOEING500
929/8/2019KOREANK984231BOEING300
1030/8/2019QATARQ764123AIRBUS600
11

<tbody>
</tbody>

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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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,214,535
Messages
6,120,090
Members
448,944
Latest member
sharmarick

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