+ Reply to Thread
Results 1 to 15 of 15

How to type a word and fill some cells with numeric values associated

  1. #1
    Registered User
    Join Date
    10-29-2021
    Location
    Brazil
    MS-Off Ver
    2013
    Posts
    10

    Post How to type a word and fill some cells with numeric values associated

    Hello Friends,

    Thank you for the possibility to post my doubt here. I have a basic and intermediate knowledge in excel and I tried to create a spreadsheet where I am going to type a word and it will look for a table with numeric values associated for each letter
    and fill these letters below each year of a sequence created. I am attaching a file with my example, but here is a bried description:

    TABLE
    LETTER VALUE
    F 1
    A 2
    K 3
    E 4

    WORD TO TYPE:

    FAKE
    2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034

    F A A K K K E E E E F A A K

    Here is the deal. When I type the word FAKE, it will check that table with letters and numeric values associated and will fill the cells below each year the numeric value of the letters. So F=1 and it will just add F on 2021, A=2 and it will add
    the A on 2022 and 2003 and repeat it two times because the value associate to A is 2 (A=2) and so on.
    I tried several combinations using REPT, IF but no sucess. If you have any idea how to do this, let me know.

    Best Regards

    PS: I am using office professional 2013
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: How to type a word and fill some cells with numeric values associated

    One way:

    AliGW on MS365 Insider (Windows) 32 bit
    L
    M
    N
    2
    LETTERS
    VALUE
    COUNT
    3
    F
    1
    1
    4
    A
    2
    2
    5
    K
    3
    4
    6
    E
    4
    7
    Sheet: Plan1

    In N3 copied down:

    =SUM(M$3:M3)-M3+1

    In A15 copied across:

    =INDEX($L$3:$L$6,MATCH(IF(--RIGHT(A13,1)=0,10,--RIGHT(A13,1)),$N$3:$N$6,1))
    Attached Files Attached Files
    Last edited by AliGW; 11-08-2021 at 08:10 AM.
    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.

  3. #3
    Registered User
    Join Date
    10-29-2021
    Location
    Brazil
    MS-Off Ver
    2013
    Posts
    10

    Re: How to type a word and fill some cells with numeric values associated

    Hi Aligw,

    Thank you for the message, but I canīt add the COUNT column in the TABLE, because it is a static table. This is just a small example. I have all letter of the alphabet there with all values. The problem here is if I want type the word FEK instead of FAKE it will not work. The column value is also the number of times that the letter should be repeat.

    So, if I want type the word FEK it will not put the letter correct below each year.


    2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034

    F E E E E K K K


    Best Regards
    Last edited by fcgreco; 11-09-2021 at 07:12 AM. Reason: forgot to add another information

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: How to type a word and fill some cells with numeric values associated

    I have clearly demonstrated that I understand what you want - did you look at the attachment I provided? Repeating what you have already said isn't going to help.

    Why are you 'unable' to add a helper column?

    Try this instead:

    =INDEX($L$3:$L$6,MATCH(IF(--RIGHT(A13,1)=0,10,--RIGHT(A13,1)),{1,2,4,7},1))

    The problem here is if I want type the word FEK instead FAKE, it will not respect the COUNT COLUMN. The COLUMN VALUE also means how many times this letters should be repeated.
    This requirement was not stated in your opening post. My solutions work for what you asked for originally.
    Attached Files Attached Files
    Last edited by AliGW; 11-09-2021 at 07:10 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: How to type a word and fill some cells with numeric values associated

    PLEASE STOP EDITING PREVIOUS POSTS!

    You are making my replies look nonsensical!!!

    If you want to add extra detail, add an extra post to the thread.

    Provide two or three scenarios that show all possible situations and I will have another look. At the moment, it feels as if the goalposts are going to be shifting all day.

    Once you have provided a more realistic sample workbook, I'll take another look.

  6. #6
    Registered User
    Join Date
    10-29-2021
    Location
    Brazil
    MS-Off Ver
    2013
    Posts
    10

    Re: How to type a word and fill some cells with numeric values associated

    Hi Aligw,

    Sorry aobut the misunderstanding, but When I edited the posted was to add more information, but It looks like the EDIT function here doesnīt work like the other EDIT function as I thought.

    I donīt want your replies look nonsensical, my idea here is to get some help and if possible help other people with my basic knowledge in excel. I am attaching a real scenario file with the situation that I am trying to solve and spending more than
    40 hours without a solution. If someone can help me, I will thank you in advanced.

    Attached is the real scenario with the real table associate with the letters and values. I want type any word below the field TYPE THE WORD BELOW and I want each letter typed in these fields (each letter will be add in each cell, like DAY in the example file attached) populate each year with the following value in the table, e.g:

    TYPE THE WORD BELOW:

    D A Y


    2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034
    D D D D A Y Y Y Y Y Y Y D D

    The word DAY should be repeated until it it finds the last year available. It will works like a loop. On 2032 it completes the word DAY with the values associated in the table for each letter and the the years 2033 and 2034 will repeat just two Dīs,
    because the sequence of the years finish on 2034. The real table is here

    LETTERS VALUE
    A 1
    J 1
    S 1
    B 2
    K 2
    T 2
    C 3
    L 3
    U 3
    D 4
    M 4
    V 4
    E 5
    N 5
    W 5
    F 6
    O 6
    X 6
    G 7
    P 7
    Y 7
    H 8
    Q 8
    Z 8
    I 9
    R 9

    Thank you in advanced.

  7. #7
    Registered User
    Join Date
    10-29-2021
    Location
    Brazil
    MS-Off Ver
    2013
    Posts
    10

    Re: How to type a word and fill some cells with numeric values associated

    Here is the attacment.
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: How to type a word and fill some cells with numeric values associated

    Are you still using Excel 2013 or something newer?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: How to type a word and fill some cells with numeric values associated

    If by chance you have MS365 or Excel 2021, this should work. In A8 copied across:

    =LET(l,SORT($Q$2:$Q$27),v,SORTBY($R$2:$R$27,$Q$2:$Q$27,1),MID(REPT(TEXTJOIN(,1,IFNA(REPT($A$3:$L$3,LOOKUP($A$3:$L$3,l,v)),"")),10),COLUMN(),1))
    Attached Files Attached Files
    Last edited by AliGW; 11-09-2021 at 11:15 AM.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,363

    Re: How to type a word and fill some cells with numeric values associated

    VBA

    Please Login or Register  to view this content.
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: How to type a word and fill some cells with numeric values associated

    Alternatives to post #9:

    =LET(l,SORT($Q$2:$Q$27),v,SORTBY($R$2:$R$27,$Q$2:$Q$27,1),w,$A$3:$L$3,MID(REPT(TEXTJOIN(,1,IFNA(REPT(w,LOOKUP(w,l,v)),"")),10),COLUMN(),1))

    or:

    =LET(c,COLUMNS($A1:A1),l,SORT($Q$2:$Q$27),v,SORTBY($R$2:$R$27,$Q$2:$Q$27,1),w,$A$3:$L$3,MID(REPT(TEXTJOIN(,1,IFNA(REPT(w,LOOKUP(w,l,v)),"")),10),c,1))
    Last edited by AliGW; 11-09-2021 at 11:28 AM.

  12. #12
    Registered User
    Join Date
    10-29-2021
    Location
    Brazil
    MS-Off Ver
    2013
    Posts
    10

    Re: How to type a word and fill some cells with numeric values associated

    I am still working with Excel 2013. Unfortunately I canīt buy right now a new version. Thank you

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: How to type a word and fill some cells with numeric values associated

    That's a shame. Go with John's VBA solution, then.

  14. #14
    Registered User
    Join Date
    10-29-2021
    Location
    Brazil
    MS-Off Ver
    2013
    Posts
    10

    Re: How to type a word and fill some cells with numeric values associated

    My problem here is that TEXTJOIN, LET, SORTBY, IFNA doesnīt work for office 2013. I will check about the possibility to upgrade for a new version and try it. Thank you a lot for you help.

    Regards

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: How to type a word and fill some cells with numeric values associated

    Yes, I understand this - I said that the solution I offered would work if you had Excel 2021 or MS365.

    I have advised you to use the VBA solution offered by John Topley instead.

    If you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Fill cell with test based on another cells numeric value
    By dad812 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-03-2018, 08:19 AM
  2. [SOLVED] Fill cell with test based on another cells numeric value
    By dad812 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-02-2018, 07:13 AM
  3. [SOLVED] Type Mismatch, variant variable although numeric won't allow numeric manipulation
    By Rokn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2016, 04:02 PM
  4. Replies: 1
    Last Post: 07-25-2016, 03:09 PM
  5. Word type document auto fill in
    By SIRCOOKS in forum Excel General
    Replies: 6
    Last Post: 05-13-2016, 11:42 AM
  6. Replies: 9
    Last Post: 10-04-2013, 05:10 PM
  7. [SOLVED] Sum of numeric values within cells also containing non-numeric characters
    By Mike Brewer in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-24-2013, 09:16 AM

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