Vlookup isn't going to work...

Mrs. T

Board Regular
Joined
May 24, 2007
Messages
107
Office Version
  1. 365
Platform
  1. MacOS
How can I create formulas to fill in the blue area of my attached spreadsheet.

Data is in sheet 2 - in rows. Each employee has a row for each entry.

I need sheet 2 to take each type (regular, holiday, overtime) and convert it into columns.

I want a column for each type of pay with the employees listed in column A.

I'm not familiar with macros...so I have to find a formula to enter into the blue areas...
 

Attachments

  • excel.png
    excel.png
    21.6 KB · Views: 15

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
With Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Filled Down" = Table.FillDown(Source,{"Employee number"}),
    #"Filtered Rows" = Table.SelectRows(#"Filled Down", each ([TIME] <> null)),
    #"Pivoted Column" = Table.Pivot(#"Filtered Rows", List.Distinct(#"Filtered Rows"[TIME]), "TIME", "TOTAL")
in
    #"Pivoted Column"

Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

- Follow this link to learn how to install Power Query in Excel 2010 / 2013.

- Follow this link for an introduction to Power Query functionality.

- Follow this link for a video which demonstrates how to use Power Query code provided.

Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

Book3
ABCDEFGHI
1Employee numberTIMETOTALEmployee numberREGULAROVERTIMEHOLIDAY
2123REGULAR401234028
3OVERTIME2321
4HOLIDAY84563258
5456REGULAR3265488
6OVERTIME5789308
7HOLIDAY8987328
8789REGULAR30
9OVERTIME
10HOLIDAY8
11987REGULAR32
12
13HOLIDAY8
14654REGULAR8
15HOLIDAY8
16321REGULAR
Sheet1
 
Upvote 0
I cannot download this to my work computer. Is there another way to do this?
 
Upvote 0
read the third link provided as to how to copy and paste the code. You already have Power Query in O365. No download is required.
 
Upvote 0

Forum statistics

Threads
1,215,204
Messages
6,123,630
Members
449,109
Latest member
Sebas8956

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