auto populating table based on condition

ialexander03

New Member
Joined
Jun 9, 2017
Messages
14
I have a table of invoices on sheet 1, to which I want to automatically populate the table on sheet 2. However, only the one what have not been paid.


So, if a Y appears in column E, that row is not copied over.


Sounds simple, probably is, however, its needs to be a "living" table, so when an invoice is paid, and the Y is put on sheet 1, it is removed from the table on sheet 2, and everything shifts up, leaving no gaps etc.


Hope that makes sence.

Sheet 1
Client Ref Numberinvoice numberInvoice Dateinvoiced amountinvoice paid
CUS1

<tbody>
</tbody>
1
01/01/2017

<tbody>
</tbody>
$4,534.00

<tbody>
</tbody>
y
CUS2

<tbody>
</tbody>
2
18/01/2017

<tbody>
</tbody>
$67,246.00

<tbody>
</tbody>
CUS3

<tbody>
</tbody>
3
15/01/2017

<tbody>
</tbody>
$13,453.00

<tbody>
</tbody>
CUS4

<tbody>
</tbody>
4
28/01/2017

<tbody>
</tbody>
$136.00

<tbody>
</tbody>
y
CUS5

<tbody>
</tbody>
5
28/02/2017

<tbody>
</tbody>
$34,636.00

<tbody>
</tbody>
CUS6

<tbody>
</tbody>
6
18/03/2017

<tbody>
</tbody>
$6,346.00

<tbody>
</tbody>
y
CUS7

<tbody>
</tbody>
7
20/03/2017

<tbody>
</tbody>
$88,785.00

<tbody>
</tbody>
CUS8

<tbody>
</tbody>
8
28/03/2017

<tbody>
</tbody>
$362.00

<tbody>
</tbody>
y
CUS9

<tbody>
</tbody>
9
28/03/2017

<tbody>
</tbody>
$263,564.00

<tbody>
</tbody>

<tbody>
</tbody>

Sheet 2, what I want anyway, is the same as above, but without CUS1, CUS4, CUS6 and CUS8 as they have the paid marker, but should I enter the paid marker (on the live table on sheet 1) into CUS7, for CUS7 to auto remove from the sheet 2 table, and everything move up.

and yes, I know this may sound a pointless task, as you just use auto filter on the invoice paid column on sheet 1, but the original is a much larger document, with more fields than in this example, and sheet 2, will form part of a printable report page, hence why i want it to be auto populating!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hello there,

I am thinking of a simple way using Microsoft Query which you can find [I am using Office Standard 2013] under:

Data
From Other Sources
From Microsoft Query

You can then choose the columns you want to include in Sheet2 and the criteria you want to apply to the returning data. You can use it in a workbook from data on different sheet.

You just will have to refresh before printing [there is option to refresh on opening and every timing you choose but better to refresh before printing, less resources consuming]
In most recent version of Excel, there may be something better.

In case you are not familiar with it: https://support.office.com/en-us/ar...nal-data-42a2ea18-44d9-40b3-9c38-4c62f252da2e

Let me know if this is helpful.
 
Upvote 0

Forum statistics

Threads
1,216,054
Messages
6,128,516
Members
449,456
Latest member
SammMcCandless

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