Help to understand how to dynamically extra data with reordering

0kuden

New Member
Joined
Oct 12, 2017
Messages
4
Hello,

I am looking for your help in figuring out if it is indeed a macro I need to come up with for the following problem, or if a set of formulas would suffice (which I doubt).

My idea is to summarize in the top of the sheet, in a small formatted section, the 10 oldest entries (from a set of data below) for which the variable is X in a specific column. This would be ordered from oldest to most recent. Once the variable is changed to Y, this entry would not appear anymore in this summary section up top and the latter would reorder itself to then start with the "newest" old entry, and repopulate the 10th row.

Example below is a similar data set, with 7 entries to shorten the example:

DateNameColorMakeAmountHas replied
5-JunJohnRedAlpha54No
9-MayMaryBlueBeta100No
11-DecAlfieRedCharlie54Yes
17-JulRonaldGreenAlpha845No
19-JulPaulRedBeta654Yes
10-NovJuliaRedCharlie125Yes
1-DecBettyPurpleAlpha5558No

<tbody>
</tbody>

And example below is a seperate section where I want this data recalled, with top 3 from oldest to newest, where "no" is the defining variable:

DateNameAmount
9-MayMary100
5-JunJohn54
17-JulRonald845

<tbody>
</tbody>

The idea is therefore to populate this summary section only if the "Has replied" equals "no". Once i change to a "yes" in the main data section, all fields refresh in the summary section, with the new addition(s) up to specified max number of rows. Manual refresh (button) is not an issue.

Would this work with formulas? Or are we talking intricate coding here to get this done, if at all possible? And if this could work, how would adding new entries with older dates mess up the whole thing?

Sorry if this is not the appropriate place for such a query.

Many many thanks.
0kuden
 

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
Yes, it can be done with formulas. It might be easiest to do with formulas by converting the data to a "structured table." However, you can extract the desired data very, very quickly with Excel's built-in filtering tools.

If your table is structured as you posted, with no completely blank rows and with column header titles—

Select any cell in the data. On the ribbon, select Data >> Filter, the big funnel icon. Dropdown indicators will appear in the header cells.

Click the dropdown indicator in the "Has Replied" column. In the bottom pane of the pop-up menu, clear the "(Select All)" checkbox and place a check in the box next to "No".

The rows where "Has Replied" = "Yes" are now hidden.

Next, click the dropdown in the "Date" header cell and select "Sort Oldest to Newest". The oldest dates are put on top; the oldest ten are your first ten rows.

You can select the data you want, copy it, and when you paste, the hidden cells are not included in the copy+paste operation.

You can clear the filters individually. When you want to see the unfiltered data again, go back to the ribbon and click on the big Filter icon to deselect filtering.

Hope this helps.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

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