complex formula help, plz help me

caroline.vanbommel

New Member
Joined
Aug 21, 2006
Messages
27
hi
i have the following formula

=IF(ISNA(HLOOKUP($B4,'[Monthly master file.xls]Selling 06 01'!$B$2:$BO$300,(MATCH($A$2,'[Monthly master file.xls]Selling 06 01'!$B$2:$B$300,FALSE)),FALSE)),"0",HLOOKUP($B4,'[Monthly master file.xls]Selling 06 01'!$B$2:$BO$300,(MATCH($A$2,'[Monthly master file.xls]Selling 06 01'!$B$2:$B$300,FALSE)),FALSE))

I want to click and drag it into 12 other cells and i want
'[Monthly master file.xls]Selling 06 01'
to change from cell to cell
eg A1 : '[Monthly master file.xls]Selling ACT 06 01'
B2: '[Monthly master file.xls]Selling ACT 06 02'
and so on.

is this possible??
thanks :)
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Here's a variation of what has already been offered...

Assuming that HLOOKUP returns either a numerical value or #N/A, try...

Insert > Name > Define

Name: BigNum

Refers to:

=9.99999999999999E+307

Click Ok

Then try...

C4, copied across:

=LOOKUP(BigNum,CHOOSE({1,2},0,HLOOKUP($B4,INDIRECT("'[Monthly master file.xls]Selling 06 "&TEXT(COLUMNS($C$4:$C4),"00")&"'!$B$2:$BO$300"),(MATCH($A$2,INDIRECT("'[Monthly master file.xls]Selling 06 "&TEXT(COLUMNS($C$4:$C4),"00")&"'!$B$2:$B$300"),FALSE)),FALSE)))

Hope this helps!
 
Upvote 0
Ooops! Change...

COLUMNS($C$4:$C4)

to

COLUMNS($C$4:C$4)

(Andrew, thanks for pointing this out!)
 
Upvote 0

Forum statistics

Threads
1,214,528
Messages
6,120,065
Members
448,941
Latest member
AlphaRino

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