Forum

Notifications
Clear all

Bring unique values in a column

6 Posts
3 Users
0 Reactions
89 Views
(@muadnan)
Posts: 3
Active Member
Topic starter
 

In the attached file i have column A with PO#, Column B with PO Total Amount, in Column C i need a PO amount to be 1000 only for PO- A instead of repeating the same 1000 on every line item. Every line item has different paid amount and other information. Once I have unique 1000 for PO A and 500 for PO B i will then use them in a Pivot. Can you suggest a formula which i can apply on Column A to get unique values in Column C.

 
Posted : 02/04/2020 10:38 pm
(@purfleet)
Posts: 412
Reputable Member
 

Hi Muhammad

I am not really sure what you are after - do you want Column C to be 1001, 1002 etc? What does PO mean? What relevance is the 1000?

Purfleet

 
Posted : 03/04/2020 3:29 am
(@muadnan)
Posts: 3
Active Member
Topic starter
 

PO means purchase order, unfortunately this is how information comes from our ERP system. Purchase order amount which is $1000 and then some line item activity like payment, payment date, invoice date and lots of other information then again on line 2 i have the same PO amount $1000 which makes it $2000(1000+1000) and again i have repeated 1000 on lines to follow which if I make a pivot would give me $10,000 vs $1000 original PO amount. That's the reason i want to fix this column in a new column where i have only one unique value of 1000 in the whole column for PO - A. and other value would remain blank.  Attached is how i want my column to appear.

Thanks

 
Posted : 03/04/2020 1:03 pm
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Hello,

See if attached example suits your needs.

Br,
Anders

 
Posted : 03/04/2020 11:11 pm
(@muadnan)
Posts: 3
Active Member
Topic starter
 

Hi,

It's a temporary solution and would only work if the column is sorted alphabetically. For instance if there is PO C in between or PO A is repeated twice in other lines it would repeat the value of PO A which makes it a double count. I remember i had a similar issue few years ago and i fixed it by combining match and vlookup but not getting the logic again 🙂 Please refer to the attachment.

 

Thanks much

 
Posted : 04/04/2020 1:22 pm
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Hello Muhammad,

I don't really understand why you want to add this extra column, because if you don't want to sum the PO Total Amount column, then don't.
See attached, I have added a Pivot Table. I assume it is the paid amount you want to sum, as that is what is left to sum.

With that said, try this formula instead, paste it in cell C2.
=IF(COUNTIF($A$2:$A2,$A2)>1,"",$B2)

Br,
Anders

 
Posted : 05/04/2020 4:53 am
Share: