Use of index for multiple sheets and match for three criteria

sucitanr

New Member
Joined
May 17, 2018
Messages
13

Hi ,

I am making a format of salary slip using index and match function.
i am trying that if i put the month and emp. id the rest data should come automatically to that payslip format. but i have 12 worksheet having 12 month salary on it. and in that i have already made table of the salary made for particular month naming the table name.
now i want to use index formula for all the worksheet and match formula in such a way that if i just put the month and emp id i get the pay slip made for the particluar employee.
my every worksheet has the below header:-

emp idnamemonthlwpsalary payable
1praveenmay'18118000
2deepakmay'1809000

<tbody>
</tbody>


this is may month salary worksheet. like this i have 11 more month salary work sheet.

and i have made a format of payslip in which i have put all the details.i am trying for a formula through which if i just put month and emp id ,i get the data in the desire colums of that payslip from the desired worksheet.

Plz can u help.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
If I understand you well, you have 12 times (for 12 months) the same kind of sheet structure. You know sufficiently index match formula to get it on one sheet (let's say may'18 reference is in B2 and your sheet is called may'18). The easiest way is then to take you formula and change
Code:
[LEFT][COLOR=#008000][FONT=Verdana]may'18![/FONT][/COLOR][/LEFT]
(which is the reference to the page) by
Code:
[LEFT][COLOR=#222222][FONT=Verdana]indirect(B2&"!")[/FONT][/COLOR][/LEFT]
; so that as long as B2 refers to sheet name, it will use that sheet in the formule. If you named tables, you can use indirect formula as well.

Another option is to use power pivot (a pivot table on 12 sheets), with the inconvenient of refresh.
 
Last edited:
Upvote 0
monthto put manually
employee idto put manually
nameamount through formula
lwpamount through formula
salary payableamount through formula

<tbody>
</tbody>

i want to keep formula of index and match in all name , lwp and salary payable column so that if i just put month and employee id , the three column should catch their amount/details from the respective sheet. Like if i put "may" in month and employee id as "1" it should pick data of the employee id - " 1" from "May'18" month worksheet. and if i put "jun" in month column and employee id as "1" it should pick data of the employee id - " 1" from "jun'18" month worksheet

Plz help me with full formula, as i am unable to keep two matching cells with multiple sheets.

thanks for quick response.
 
Upvote 0
i have already selected and made the table on seat naming as may_18, jun_18 to apr_19 for using Index function.
Whereas my sheets named as may'18 , jun'18 to apr'19.

thanks for helping.
 
Upvote 0
i can send you the screen shot or can send you the sheet but i dont know if i can send it from here. i am unable to find any attachment kind of button here,
 
Upvote 0
Employee idnamemonthLWPSalary Payable
1PrasunMay'18112000
2AlokMay'18010000
3RahulMay'1809000
4DeepakMay'1808000

<tbody>
</tbody>


I have named the table as May_18 and the sheet name is May'18

Employee idnamemonthLWPSalary Payable
1PrasunJun'18112000
2Alokjun'18010000
3Rahuljun'1809000
4Deepakjun'1808000


<tbody>
</tbody>


I have named the table as jun_18 and the sheet name is jun'18

Like this i have made the monthly salary sheet from may'18 to apr'19.


PAYSLIP I HAVE MADE IN A DIFFERENT WORKSHEET SOMEWHAT LIKE THIS:-

COMPANY NAMEMONTHMAY'18
EMP ID1FILL THIS COLUMN OF EMP ID AND MONTH MANUALLY
NAMEWILL PUT FORMULA IN NAME COLUMN
LWPWILL PUT FORMULA IN LWP COLUMN
Salary PayableWILL PUT FORMULA IN SALARY PAYABLE COLUMN
TOTALTOTAL AMOUNT PAYABLE

<tbody>
</tbody>


I WANT THE FORMULA IN SUCH A WAY THAT I ONLY FILL MONTH AND EMP ID AND I AUTOMATICALLY GET THE EMPL CODE DETAILS FROM THE RESPECTIVE MONTH SHEET.

I TRIED ONE FORMULA USING INDEX AND MATCH BUT IT WAS TAKING ONLY ONE SHEET AND WITH ONLY ONE MATCH. PLZ CAN YOU TELL ME HOW TO MAKE THE FORMULA.

MY FORMULA WAS :-
<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; color: #000000}span.s1 {color: #0057d6}span.s2 {color: #006107}span.s3 {color: #ab30d6}span.s4 {color: #a54a29}span.s5 {color: #33af4a}</style>
=INDEX('May ''18'!$B$2:$E$5,MATCH($A$2,'May ''18'!$A$2:$A$5,0),MATCH(D3,'May ''18'!$B$2:$E$5,0))

I HAVE PUT THE ABOBE FORMULA IN NAME AND HAVE COPIED THE SAME IN LWP AND SALARY PAYABLE COLUMN.

BUT THIS IS ONLY GIVING ME THE MAY MONTH DATA TAKING EMPID AS A MATCH COLUMN WHICH DOES NOT SOLVE MY PURPOSE.

I WANT TO TAKE ALL SHEETS AND WANT TO USE EMP ID AND MATCH COULMN AS MATCH .


THANKS FOR TH QUICK RESPONSE.
 
Upvote 0
Employee idnamemonthLWPSalary Payable
1PrasunMay'18112000
2AlokMay'18010000
3RahulMay'1809000
4DeepakMay'1808000

<tbody>
</tbody>



I have named the table as May_18 and the sheet name is May'18

Employee idnamemonthLWPSalary Payable
1PrasunJun'18112000
2Alokjun'18010000
3Rahuljun'1809000
4Deepakjun'1808000

<tbody>
</tbody>



I have named the table as jun_18 and the sheet name is jun'18

Like this i have made the monthly salary sheet from may'18 to apr'19.


PAYSLIP I HAVE MADE IN A DIFFERENT WORKSHEET SOMEWHAT LIKE THIS:-

COMPANY NAMEMONTHMAY'18
EMP ID1FILL THIS COLUMN OF EMP ID AND MONTH MANUALLY
NAMEWILL PUT FORMULA IN NAME COLUMN
LWPWILL PUT FORMULA IN LWP COLUMN
Salary PayableWILL PUT FORMULA IN SALARY PAYABLE COLUMN
TOTALTOTAL AMOUNT PAYABLE

<tbody>
</tbody>



I WANT THE FORMULA IN SUCH A WAY THAT I ONLY FILL MONTH AND EMP ID AND I AUTOMATICALLY GET THE EMPL CODE DETAILS FROM THE RESPECTIVE MONTH SHEET.

I TRIED ONE FORMULA USING INDEX AND MATCH BUT IT WAS TAKING ONLY ONE SHEET AND WITH ONLY ONE MATCH. PLZ CAN YOU TELL ME HOW TO MAKE THE FORMULA.

MY FORMULA WAS :-

=INDEX('May ''18'!$B$2:$E$5,MATCH($A$2,'May ''18'!$A$2:$A$5,0),MATCH(D3,'May ''18'!$B$2:$E$5,0))

I HAVE PUT THE ABOvE FORMULA IN NAME AND HAVE COPIED THE SAME IN LWP AND SALARY PAYABLE COLUMN.

BUT THIS IS ONLY GIVING ME THE MAY MONTH DATA TAKING EMPID AS A MATCH COLUMN WHICH DOES NOT SOLVE MY PURPOSE.

I WANT TO TAKE ALL SHEETS AND WANT TO USE EMP ID AND Month COULMN AS MATCH .

Plz can u hep me wit full formula as i am not good with excel . I tried to make above formula but it was not fully helpful..

Thanks
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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