replacing values

ctrlrowdim

New Member
Joined
Apr 22, 2012
Messages
39
In this project I need to replace the values of a random list for the values of those numbers in a positional list. every number must be replace for the place is found for the first time only, when the same number show up again will be replace for the next position I attach example images replace thoundsand ideas so.

Excel Workbook
ABCDEFGHIJKLM
162025313245123456
281724344041789101112
361214304041131415161718
42513283141192021222324
5248103033252627282930
61910213335313233343536
7153132333849373839404142
871227294245434445464748
91720242534495051525354
1061430405053555657585960
11INPUT LISTPOSITION REFERENCE
12
13
14OUTPUT LIST
15135153233948
16275052541718
17554456295824
Sheet3
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Sorry can you illustrate with an example?

6 in your input list becomes 13 in the output list using a position reference of 13, how does that work?

Could you explain for 2-3 values so it will be easier for us to understand what is happening?
 
Upvote 0
Maybe

Array formula in A15

=INDIRECT(TEXT(MIN(IF($A2:$F$10=A1,ROW($A2:$F$10)*10^4+(COLUMN($A2:$F$10)+7))),"R0000C0000"),0)

confirmed with Ctrl+Shift+Enter
(hold down both Ctrl and Shift keys and hit Enter)

copy across till F15 and down

M.
 
Upvote 0
every row has to be replace for the position number.
in A1 you see no.6 so replace no. is like you ask, WHERE 6 WAS RIGHT BEFORE HERE, the answer is in A3 and A3 = H3, and H3=13. another example no.41, is in F2, where was before here, in F3 and F3=M3 (M3=18)
when you get to F3 is the same 41, and the same question, where was right before this position, answer F4=M4=24. do you understand now.
 
Upvote 0
every row has to be replace for the position number.
in A1 you see no.6 so replace no. is like you ask, WHERE 6 WAS RIGHT BEFORE HERE, the answer is in A3 and A3 = H3, and H3=13. another example no.41, is in F2, where was before here, in F3 and F3=M3 (M3=18)
when you get to F3 is the same 41, and the same question, where was right before this position, answer F4=M4=24. do you understand now.

The Output List in your example has only 3 rows, so try the formula i posted above (must be comfirmed with Ctrl+Shift+Enter, not just Enter)

M.
 
Upvote 0
thanks marcelo, My real data is A1:F3000 that's why I am looking for a code, but I will try in small data your idea, thank you, thank you.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

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