very difficult CSE (array formula) question

G

Guest

Guest
I have two files. file1 has all of my data (like a database) and file2 extracts and displays significant data from file1.

In the second file(file2) I am trying to write a CSE(Array Formula) which will print values into column A.

It should:
Look at all the values in file1!B2:B200
If the value in a row of the file1!B column is "high" then it should print the exact text of the corresponding row of the file1!E column into the next available slot in the A column of file2.

Example:
file1 contains the following data:
.ABCDE
1...low......apples
1...high......oranges
1...low......pears
1...high......grapes

so . . . file2 should contain the following:

.ABCDE
1oranges............
1grapes............

Thanks.
 
Last edited by a moderator:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I suppose you could use a variation of an Index Match (slightly different formula per column).

e.g: {=INDEX([file1]$A$2:$E$200,MATCH(A2&"high",[file1]$E$2:$E$200&[file1]$A$2:$A$200,0),3)}

..would be used to pull File1Column C data into file 2.

You may want to just suck it up and toss in a colunn to the left of you range in file A and write a quick concatenation formula (like =F2&B2 -assuming you just inserted a column to the left of the range) to get a combined criteria for a vlookup.

That would look like (non-CSE): =Vlookup(A2&"high",[File1]$A$2:$F$200,4,false) ->to pull File1Colunn D data for example.

Hope that helps
Adam S.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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