Hi,
I need a formula in which cells in Col B are automatically filled when Cells in Col A are filled, such that there are no repeat values in Col B. Please refer to the attached excel file.
Thanks
Sam
Hi,
I need a formula in which cells in Col B are automatically filled when Cells in Col A are filled, such that there are no repeat values in Col B. Please refer to the attached excel file.
Thanks
Sam
You know there is a built in function in excel that can do that w/o a formula.
just copy column A, paste it into col B, use remove duplicates under the data tab at the top, when it asks you if you want to expand the selection click continue with the current selection, then hit remove duplicates.
Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
Sam Capricci
This formula will work for you but you need to have the data begin on row 2, not row 1. You'd paste it into cell B2 and drag down until you get blanks...
=IFERROR(INDEX($A$2:$A$1000,MATCH(0,INDEX(COUNTIF($B$1:B1,$A$2:$A$1000&""),),0))&"","")
If you had MS365, this would suffice:
=UNIQUE(A:A)
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Thanks Ali. Unfortunately, I am on Excel 2016.
Cell B1 non array formula , Drag Down
array formula , Drag DownHTML Code:
HTML Code:
Last edited by wk9128; 07-15-2021 at 10:02 AM.
Thanks Sam.
Your formula works. But, let's say if there's a value "led" in Col A, then this "led" should not appear in Col B.
Is it possible to fill Col B by extracting unique values from Col A based on multiple conditions?
For instance...
first condition, "led" in Col A to be ignored
second condition, no X in Col C
third condition, Y in Col D
Pl refer to the updated question excel.
Ali, Would Unique formula supoort multiple conditions as mentioned above?
Thanks
Sam
Last edited by CV_Sam; 07-15-2021 at 10:06 AM.
Sam - this is a MASSIVE shift of the goalposts!!!
Before anyone answers you, have you got any more requirements? If so, state them all NOW - do not drip feed them into the thread, as that is not fair on your helpers.
You don't have MS365, so you can't use it, but if you did, you'd combine it with FILTER.Ali, Would Unique formula supoort multiple conditions as mentioned above?
Last edited by AliGW; 07-15-2021 at 10:07 AM.
Just this. I am extremely Sorry for not stating it in the first post itself. The multiple conditions will solve my problem.
Thanks
Sam
Thanks - you only need to state the new requirements once. I have removed your duplicate post.
Maybe this:
=IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$2:$A$15)/(($A$2:$A$15<>"led")*($C$2:$C$15<>"x")*($D$2:$D$15="Y")),ROWS(F$2:F2))),"")
in F2, copied down:
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
Thanks Glenn. Your formula works perfect for the three conditions. But when I use it for just first condition or first and second condition (by deleting them from the formula) then I am getting the wrong values which I have highlighted in yellow in the attached updated excel file.
How to adapt the formula such that I can use it for one, two or three conditions depending on the need?
Thanks
Sam
For column H try:Formula:Please Login or Register to view this content.
For column L try:Formula:Please Login or Register to view this content.
Note that both of the above are array formulas which are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
Note that the first formula will return a "d", however the second instance of "d" doesn't correspond to an "x" in column C.
Let us know if you have any questions.
Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.
Thanks JeteMc.
Thanks a lot for the formula. It works fine on all the three conditions and I can adapt it for one or two conditions too.
Sorry for the late reply. Due to certain family medical reasons I wasnt able to come online and do anything.
Thanks and regards,
CV
You're Welcome and thank you for the feedback. I hope that the family medical issues had a good outcome.
Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post.
I hope that you have a blessed day.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks