+ Reply to Thread
Results 1 to 12 of 12

Assigning values

  1. #1
    Registered User
    Join Date
    06-24-2014
    Location
    Riyadh, KSA
    MS-Off Ver
    2007
    Posts
    9

    Assigning values

    Hi All,

    I have a excel like below in the C column and D column

    C D

    ا A
    ء A
    ب B
    ت T
    ث TH
    ج J
    ح H
    خ KH
    د D
    ذ DH
    ر R
    ز Z
    س S
    ش SH
    ص S
    ض D
    ط T
    ظ Z
    ع A
    غ GH
    ف F
    ق Q
    ك KH
    ل L
    م M
    ن N
    ه H
    ة H
    و W
    ي Y
    ى Y
    لا LA
    ال AL


    I want to write a macro that whenever I type ا this needs to be changed to A in the column A and B.
    If I change/add anything in C column, it should work.

    Can someone help me on this.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Assigning values

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-24-2014
    Location
    Riyadh, KSA
    MS-Off Ver
    2007
    Posts
    9

    Re: Assigning values

    Thanks oeldere for your quick response.

    When I use the above in A1 cell, it is not giving circular reference warning and If I click Ok, then it shows 0(Zero) in the A1 cell

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Assigning values

    I didn't notice (sorry for that) your data where in column C and D.

    In that case use the follow formula.

    a1
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-24-2014
    Location
    Riyadh, KSA
    MS-Off Ver
    2007
    Posts
    9

    Re: Assigning values

    Thank you very much Oeldere. Its working fine.

    But I want a write a VBA macro so that it can be worked. Could you please help me to do it.

  6. #6
    Registered User
    Join Date
    06-24-2014
    Location
    Riyadh, KSA
    MS-Off Ver
    2007
    Posts
    9

    Re: Assigning values

    Below is my code

    Please Login or Register  to view this content.
    It is working fine with the single letter. I want to know, Is it possible if type 2 or more symbols in the single cell and will it be converted to corresponding letters?

    Ex: If I type اب in "A" column, it will be converted to AB in "B" column.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Assigning values

    e.g. with this no VBA solution.

    =if(len(a1)=1,vlookup(a1,c1:D40,2,0),if(len(a1)=2,vlookup(left(a1,1),c1:D40,2,0)&vlookup(right(a1,1),c1:D40,2,0),"")

    and drag down

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Assigning values

    FYI, cross-posted here.
    Remember what the dormouse said
    Feed your head

  9. #9
    Registered User
    Join Date
    06-24-2014
    Location
    Riyadh, KSA
    MS-Off Ver
    2007
    Posts
    9

    Re: Assigning values

    Thanks for your quick response Oeldere.

    It is working fine with only two letters. Ex: If I type morethan two letters, it is not giving the output.

    I would like to know is it possible to write the same in VBA code?

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Assigning values

    Not my part of skills, maybe another forummember.

    BTW, Please don't crosspost.

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Assigning values

    For second time today i am warning you to take a look to forum rules.

    This is my last warning. Next time you'll be a banned user.

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  12. #12
    Registered User
    Join Date
    06-24-2014
    Location
    Riyadh, KSA
    MS-Off Ver
    2007
    Posts
    9

    Re: Assigning values

    I am sorry for that. I didn't see the forum rules.

    This is urgent that is the reason I posted there also.

    Henceforth this wont be happened.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Assigning variable values to Values and XValues
    By molap in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-12-2012, 04:15 AM
  2. Assigning Values
    By bala06 in forum Excel General
    Replies: 3
    Last Post: 06-28-2011, 11:05 AM
  3. Assigning Values
    By petuniaclark in forum Excel General
    Replies: 1
    Last Post: 04-17-2011, 09:20 PM
  4. assigning date entries to week values and month values to sum column C-N values C-
    By the accountant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2010, 09:52 AM
  5. Assigning Values
    By ksuechuc in forum Excel General
    Replies: 0
    Last Post: 04-03-2009, 01:07 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1