Need help with new project...

ibesmond

New Member
Joined
Nov 26, 2010
Messages
17
Looking for ideas on how to combat a new task.

Raw Data:
Column 1: Date
Column 2: Folio # (Reservation #)
Column 3: Price

Eg.

1/1/14 65451 $60.00
1/1/14 54874 $60.00
1/1/14 78451 $70.00
1/1/14 45612 $60.00

1/2/14 87451 $80.00
1/2/14 98745 $70.00
1/2/14 12346 $80.00
1/2/14 65497 $80.00

etc.

Usually there are multiple dates for each day in the month, followed by a folio number, and the price for that folio.

In another table i need to combine all the dates into one line followed by the median for each date.

Eg.

1/1/14 $60.00
1/2/14 $80.00

etc. I am thinking I can use a if or vlookup or something, and then use a median function to plug in the prices for each date, but I'm not sure of an exact formula that might work.

In another table I need to copy my raw data to another tab/table and organize it by folio. I was hoping someone might know a macro that I could use.

Eg.

16-Jan</SPAN>
56577</SPAN>
$174.96</SPAN>
17-Jan</SPAN>
56577</SPAN>
$165.68</SPAN>
17-Jan</SPAN>
57125</SPAN>
$165.68</SPAN>
13-Jan</SPAN>
57126</SPAN>
$129.29</SPAN>
17-Jan</SPAN>
57708</SPAN>
$165.68</SPAN>
13-Jan</SPAN>
58116</SPAN>
$129.29</SPAN>
20-Jan</SPAN>
58133</SPAN>
$179.04</SPAN>
21-Jan</SPAN>
58133</SPAN>
$179.47</SPAN>
18-Jan</SPAN>
59211</SPAN>
$166.19</SPAN>

<TBODY>
</TBODY>


The thing is when I copy the data, I need to do a couple of things with it.

The date is not really important, most likely I would keep the most recent date for each folio.
Next I need a function to add up the mode (count) for each folio. Then I need a function to take an average for each folio price.

Eg.

16-Jan</SPAN>
56577</SPAN>
2</SPAN>
$340.64</SPAN>
17-Jan</SPAN>
57125</SPAN>
1</SPAN>
$165.68</SPAN>
13-Jan</SPAN>
57126</SPAN>
1</SPAN>
$129.29</SPAN>
17-Jan</SPAN>
57708</SPAN>
1</SPAN>
$165.68</SPAN>
13-Jan</SPAN>
58116</SPAN>
1</SPAN>
$129.29</SPAN>
20-Jan</SPAN>
58133</SPAN>
2</SPAN>
$358.51</SPAN>
18-Jan</SPAN>
59211</SPAN>
1</SPAN>
$166.19</SPAN>

<TBODY>
</TBODY>

This would be the data after. Notice that 56577 showed up twice, so the third column shows (2) and the forth column shows the average. ($174.96 + $165.68 / 2 = $340.64)

Any ideas? Appreciate any thoughts. Thank you.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,214,998
Messages
6,122,638
Members
449,093
Latest member
Ahmad123098

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