If code help

Jazzer

Board Regular
Joined
Jun 14, 2011
Messages
71
Hi All<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I am looking for some code / formula to help with the following issue<o:p></o:p>
<o:p></o:p>
from B8 to B50 I want to look in col F (between 7 & 500) for any cell which contains :35B:ISIN when this is found I want to return the result from col G on the corresponding row back into Col B starting in 8 and then so on with the next result all the way down to 50<o:p></o:p>
<o:p></o:p>
&<o:p></o:p>
<o:p></o:p>
from C8 to C50 I want to look in col F (between 7 & 500) for any cell which contains :70E::HOLD// (this will always be followed immediately by a number I want to return the number into col C starting in 8 and then so on with the next result all the way down to 50<o:p></o:p>
<o:p></o:p>
if anybody has any suggestion it would be much appreciated <o:p></o:p>
<o:p> </o:p>
many Thanks<o:p></o:p>
<o:p> </o:p>
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Here is the solution for the first part of your request. This can be done with the use of array formulas. To learn about array formulas check these links:
http://office.microsoft.com/en-us/excel-help/introducing-array-formulas-in-excel-HA001087290.aspx
http://www.cpearson.com/excel/arrayformulas.aspx

Copy and paste this formula in cell B8:
= INDIRECT( "G" & SMALL(IF($F$7:$F$500=":35B:ISIN",ROW($F$7:$F$50),999999),ROW(B8)-7))

After you copy it, instead of hitting ENTER, you have to hit Ctrl-Shift-Enter together.

After the formula is entered, if you highlight cell B8, you will notice that excel adds braces to the formula at either end as shown below. If you don't see the braces Excel did not convert the formula in to an array formula.
{= INDIRECT( "G" & SMALL(IF($F$7:$F$500=":35B:ISIN",ROW($F$7:$F$50),999999),ROW(B8)-7))}

You can drag the formula from B8 to B50.

Test it and let me know if it is working the way you want.
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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