Workbook w/Relationships

blueboy18

New Member
Joined
Jan 9, 2019
Messages
3
I would like help with creating a simple database in Excel.

This is for a non-profit silent auction.

I need two different tables/charts that have the following information:

#1 "Items" - Item #, Item Name, Winning Bid Amount, Winning Bidder Name, Winning Bidder Telephone Number, Winning Bidder Email Address

#2 "Winning Bidders" - Winning Bidder Name, Winning Bidder, Winning Bidder Telephone Number, Winning Bidder Email Address, Winning Bidder Total Amount Won

For easy checkout at the end of the night, I would like for the #2 table/chart to be a quick synopsis of how much each person will owe.

Is this a possibility in Excel? Relationships between Winning Bidder Name in table/chart #1 and #2 ?

Any help will be greatly appreciated!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Re: Workbook w/Relationships Help

something like this?

Item #Item NameWinning Bid AmountWinning Bidder NameWinning Bidder Telephone NumberWinning Bidder Email AddressWinning Bidder NameItem NameWinning Bidder Telephone NumberWinning Bidder Email AddressTotal
1​
All-Inclusive trips
€ 846,621.00​
Alpha459-13-29Kappa@any1.comDeltaAirline tickets or miles, Museum tickets2-793-448Nu@any1.com
€ 1,559,261.00​
2​
Weekend getaways
€ 238,659.00​
Beta438-19-01Lambda@any1.comEpsilonSpa days, Comedy nights23-76-009Xi@any1.com
€ 1,208,416.00​
3​
Hotel stays
€ 506,541.00​
Iota958-84-34Omicron@any1.comGammaSunset or harbor cruises1-05-22-76Pi@any1.com
€ 930,615.00​
4​
Airline tickets or miles
€ 612,708.00​
Delta2-793-448Nu@any1.comAlphaAll-Inclusive trips459-13-29Kappa@any1.com
€ 846,621.00​
5​
Spa days
€ 431,206.00​
Epsilon23-76-009Xi@any1.comIotaHotel stays958-84-34Omicron@any1.com
€ 506,541.00​
6​
Local brewery tours
€ 432.00​
Beta438-19-01Lambda@any1.comBetaWeekend getaways, Local brewery tours438-19-01Lambda@any1.com
€ 239,091.00​
7​
Sunset or harbor cruises
€ 930,615.00​
Gamma1-05-22-76Pi@any1.com
8​
Museum tickets
€ 946,553.00​
Delta2-793-448Nu@any1.com
9​
Comedy nights
€ 777,210.00​
Epsilon23-76-009Xi@any1.com
 
Upvote 0
Re: Workbook w/Relationships Help

in this case you'll need PowerQuery

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type1" = Table.TransformColumnTypes(Source,{{"Winning Bidder Telephone Number", type text}}),
    #"Grouped Rows" = Table.Group(#"Changed Type1", {"Winning Bidder Name"}, {{"Count", each _, type table}, {"Total", each List.Sum([Winning Bid Amount]), type number}}),
    #"Added Custom" = Table.AddColumn(#"Grouped Rows", "Item Name", each Table.Column([Count],"Item Name")),
    #"Added Custom1" = Table.AddColumn(#"Added Custom", "Winning Bidder Telephone Number", each List.Distinct(Table.Column([Count],"Winning Bidder Telephone Number"))),
    #"Added Custom2" = Table.AddColumn(#"Added Custom1", "Winning Bidder Email Address", each List.Distinct(Table.Column([Count],"Winning Bidder Email Address"))),
    #"Extracted Values" = Table.TransformColumns(#"Added Custom2", {"Item Name", each Text.Combine(List.Transform(_, Text.From), ", "), type text}),
    #"Extracted Values1" = Table.TransformColumns(#"Extracted Values", {"Winning Bidder Telephone Number", each Text.Combine(List.Transform(_, Text.From), ", "), type text}),
    #"Extracted Values2" = Table.TransformColumns(#"Extracted Values1", {"Winning Bidder Email Address", each Text.Combine(List.Transform(_, Text.From), ", "), type text}),
    #"Reordered Columns" = Table.ReorderColumns(#"Extracted Values2",{"Winning Bidder Name", "Count", "Item Name", "Winning Bidder Telephone Number", "Winning Bidder Email Address", "Total"}),
    #"Sorted Rows" = Table.Sort(#"Reordered Columns",{{"Total", Order.Descending}})
in
    #"Sorted Rows"[/SIZE]

example excel file
 
Upvote 0
Re: Workbook w/Relationships Help

I use Office for Mac (2016.) Is there any work around for using the above code in Mac Excel? Any other tips for achieving something similar on a Mac?
 
Upvote 0

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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