Not sure which formula to use

DEHA11

New Member
Joined
Jun 25, 2018
Messages
15
I inherited a spreadsheet that has been manually populated in the past but I know a formula exists to make this work....

There are two tabs:

The "Summary" tab looks like this:

ABCDEF
1EMPLOYEEREGULARSPECIALOTHERDATE:1/1/2018
2J Smith500.00
3T Doe
4K Timm

<tbody>
</tbody>


The "Data" tab looks like this with the exception that the date is in merged cells rather than listed in each column.
(ie B1:D1 is one cell that has 1/1/2018 in it, E1:G1 is one cell that has 1/15/2018 in it)

ABCDEFG
11/1/20181/1/20181/1/20181/15/20181/15/20181/15/2018
2EmployeeRegularSpecialOtherRegularSpecialOther
3J Smith500.00100.0050.00400.0050.0010.00
4T Doe0.00200.0020.000.00200.0020.00
5K Timm100.00100.0020.00100.00100.0020.00

<tbody>
</tbody>


I'd like the empty cells (B2:E4) on the Summary tab to automatically update with the corresponding information from the Data tab when I change the date in cell F1.

So, cell B2 on the Summary tab would be populated with the information from cell B3 from the Data tab based on matching "J Smith", the date, and "Regular" and so on.

I can make changes to the overall layout if necessary to make this work, like un-merging the date cells on the data tab. I've tried INDEX MATCH and SUMIFS, but neither are working with the desired result.

Help is greatly appreciated!
-Deha
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Based on the specifics of your table set up (and I'm assuming the Regular, Special, Other [3 columns] are repeated for all dates) the following formula pasted in cell B2 of your summary sheet and copied across and down as necessary will give you the expected output.
=INDEX(Data!$1:$1048576,MATCH(Summary!$A2,Data!$A:$A,0),MATCH($F$1,Data!$1:$1,0)+COLUMN(B$1)-2)

FYI: no changes to the DATA tab would be necessary.
 
Last edited:
Upvote 0
...the following formula pasted in cell B2 of your summary sheet and copied across and down as necessary will give you the expected output. =INDEX(Data!$1:$1048576,MATCH(Summary!$A2,Data!$A:$A,0),MATCH($F$1,Data!$1:$1,0)+COLUMN(B$1)-2)

FYI: no changes to the DATA tab would be necessary.

This worked! THANK YOU!!
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,845
Members
449,471
Latest member
lachbee

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