Index Match Question: Merged Cells & Variables

iSuwi

New Member
Joined
Jul 10, 2011
Messages
1
Hi there,

I have two excel sheets; Test Sheet and Variable Sheet. I'm using an index match function so that it matches two values from Variable Sheet and matches it to Test Sheet, resulting in data from a certain cell in a column range. Now, the only variable data that will change is "A7", which is grabbed from Variable Sheet.


Formula being used:


=INDEX('[Test Sheet.xlsx]Sheet'!$D$88:$D$25717,MATCH(1,INDEX(('[Test Sheet.xlsx]Sheet'!
$A$88:$A$25717=A3)*('[Test Sheet.xlsx]Sheet'!$B$88:$B$25717=$A7),0,1),0))

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
That variable will change several times as there are different lookup codes in my Variable Worksheet. For example, A7-A19 is ONE merged cell, so it wouldn't matter if I used A7 or A18 as a value. Then, it goes on to another cell range; for example, A20-A23, all being the same value in one merged cell.

<o:p></o:p>
Is there any way I can make it so that the second variable, A7, will automatically skip to the next merged cell(s), instead of manually changing that value per paste?

Note: When I do drag it down, it only skips to the next cell; not the next merged cell.

<o:p></o:p>
Thank you.
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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