Posts by keerthi deva

    Re: Extract dollar amount from cell


    Hi,


    I have problem for extracting $ amount and percentage. Because I have used multiple patterns for extract amount!




    This code producing wrong result!


    I want extract same order which is in cell ! if % comes first then extract!!! Hope You understand! Please find the attachment! FYI



    regards,
    Dev

    Hi,


    I need macro to Extract red fonts from cell :witch:Quickly. I have done one Function. But it takes more time to show output. :oops:


    So I need better one!!! Please find the below code!:fyi:


    Code
    Function GetColorText(r As Range) As String
    Dim s As String, t As String, x As Long
    t = r.Text
    For x = 1 To Len(t)
        If r.Characters(x, 1).Font.Color = vbRed Then s = s & Mid(t, x, 1)
    Next
    GetColorText = s
    End Function



    Regards,
    dev

    Hi folks,


    I need help for Extracting dollar amounts from cell.


    I have done one code but that code extract only 4 digit values !


    For example $5000 if my excel have $15000 it track only $15! can any one say where I miss?


    Here is my code FYI......



    Thanks & Regards,
    dev

    Re: split,Copy paste cell Based on Criteria


    Based on your coding I can change some lines based on my requirements. But result comes only first pattern its not moving to next if condition! I don't know why? Could you say where I wrong?


    please find my below code... FYI


    Re: split,Copy paste cell Based on Criteria


    Could you please Explain this lines? I am not able to understand!


    Code
    ws2.Range("B" & Rows.Count).End(xlUp)(2) = .Execute(r)(0).submatches(1) & IIf(.Execute(r)(0).submatches(3) = vbNullString, "", "/" & _ 
                    .Execute(r)(0).submatches(3))

    Re: compare 2 columns and highlight words that don't match then split difference


    Finally I found this code!


    But its getting late can any one say solution?

    Re: split,Copy paste cell Based on Criteria


    First of all Thank you for your time!


    I have data in same format which is in file but each cell have more no. of sentences. But "apple" and "orange" words are comes one time in each cell. :read:


    Also apple values are end with before orange and spaces.


    For example, common thing is highlighted below,


    we received Apple profit--$150 and orange profit--- $52 and 20%


    I want split after apple before orange if any $ and % numbers are there combine and paste target cell. same for Orange data also.


    Hope u have any idea on over all! :)


    Regards,
    Dev

    Hi,


    I have a large amount of data in each cell in column A and B . I want to compare and highlight words that don't match. For that I try the below macro. I want to split that red fonts string to next cell. But I have trouble in splitting red font words because it takes more time for splitting. Anyone have better macro for compare and split the difference? I have attached macro workbook which I tried.


    I want macro to display output like this,


    [TABLE="width: 500"]

    [tr]


    [td]

    A

    [/td]


    [td]

    B

    [/td]


    [td]

    C

    [/td]


    [/tr]


    [tr]


    [td]

    AAAB

    [/td]


    [td]

    AAA

    [/td]


    [td]

    B

    [/td]


    [/tr]


    [/TABLE]



    thanks & Regards,
    Deva

    Re: Extract Only Red fonts


    Quote from pike;760404

    Hi For a range of cells try


    Thank you very much pike!:ole::ole::dance:

    Hi All,


    I have tried to Extract only red highlighted words in next cell.I found macro for that.It was working perfectly but my problem is i dont know how to fill that function in Entire B Column. Also i want another function to extract red fonts from A column because this get delay to produce result.


    MY CODE is


    it give the result,


    [TABLE="class: grid, width: 500"]

    [tr]


    [td]

    BASE

    [/td]


    [td]

    VALUES

    [/td]


    [/tr]


    [tr]


    [td]

    Apple

    [/td]


    [td]

    pl

    [/td]


    [/tr]


    [tr]


    [td]

    Orange

    [/td]


    [td]

    an

    [/td]


    [/tr]


    [/TABLE]


    I could call that function in B2 cell like,
    "=redPart(A2)" and then select range of cells down Ctrl+D and then only i get the result for all cells. I am new to this excel vba so i dont know looping coding for this.


    Regards,
    keerthi

    Re: Auto fill data based on Criteria


    Quote from cytop;760271

    You're simply repeating what you said in your first post...


    Explain the logic. 'Roy P' is not the same as 'Roy O'. I'm not going to make the assumption that anything starting 'Roy' gets the ID '01' - it's down to you to explain.


    Yes, I want fill where ever Roy comes fill the ID 01

    Re: Auto fill data based on Criteria


    Quote from cytop;760261

    There's no common field to link the lists and you haven't explained how/why the various Roys (for example) all get '01' as the status.


    Hi,


    I want to fill id based on name .


    Regards,
    Keerthi