Hi there,
Can anyone help me to pull the code number from a cell to the adjacent cell.
The code has 10 digits and it starts with "7". Attached please find the data.
Hi there,
Can anyone help me to pull the code number from a cell to the adjacent cell.
The code has 10 digits and it starts with "7". Attached please find the data.
Attachment please.
Here you go..
Place this into F3:Copy down.![]()
=LEFT(RIGHT(C3,29),11)
Pete
Thank you so much, Pete...Its working.
Anytime.![]()
is that always start with "700" or it can be other numbers aside from "0" after the "7"?
Formula:
=MID(C3,SEARCH("700",C3),10)
Last edited by kenkie; 08-20-2018 at 02:35 PM.
Pretty much the same as kenkie...
=MID(C3,SEARCH("70",C3),10)
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Hi,
If you're using the formula in Post #3, you should change the 11 to 10, as it is, your result will contain a Trailing Space, which will be problematic if you're doing further comparisons with the results.
If your Code number Always starts with either 700 or 70, then use either formula from Post # 7 or #8.
But if the Only certainty is it Always starts with 7 (i.e. 7123456789), then use this:
Formula:
=MID(C3,SEARCH("7?????????",C3),10)
See attached.
jtakw: I sit corrected. 10 would be the magic number. Thanks for the checkup.
Pete
Hi , I need to lookup the date from Column C to Column G. The problem i face is some of the items in Column F and A are repeated and its amount are different. So if i simply apply vlookup, excel will not pick the correct amount for the items which are repeated.
For eg. ERRFVA111818-1 is repeated three times (line# 3,4 & 5) and the amount for each line are different($504, $1008 and $750). When i apply vlookup, excel will not pick all the three values/amount. it will only pick $504.
Vlookup can't be used for a duplicate search table, it only finds the first value for the exact match.
The simple one is G3
=C3
or more complex
=INDEX($C$3:$C$31,AGGREGATE(15,6,$A$3:$A$31/(F3=$B$3:$B$31),COUNTIF(F$3:F3,F3)))
Hi Bo,
Thank you so much. Its working. Appreciate your help.
Hi BO,
Sorry for the confusion.
This formula won't work if the data in column B and F are not in the same order. Could you please help me to find a formula if the data are not in the same order. Please find the attachment
Please try
G3
=INDEX($C:$C,AGGREGATE(15,6,ROW($B$3:$B$31)/(F3=$B$3:$B$31),COUNTIF(F$3:F3,F3)))
Thank you, Bo. Its working.
Once again thank you for your valuable time.![]()
![]()
![]()
Thank you so much, Bo. Its working. That is what i exactly want.
Once again thank you for your valuable time.![]()
![]()
![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks