+ Reply to Thread
Results 1 to 10 of 10

Which formula should be for finding this number's alphabet

  1. #1
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    2013
    Posts
    43

    Which formula should be for finding this number's alphabet

    Hello everyone, Good day,

    I am searching a formula, sheet is attached. in R5=680, in S5 which formula should be write so that it find its matching / vlookup number from Z6:AA21
    example, 250+220+170+120+80=680 so that in S5 answer should be P,O,M,K,H, cuz these alphabetic values are equal to R5 value.

    Waiting for your guidline.

    Thank you!
    Attached Images Attached Images

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Which formula should be for finding this number's alphabet

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Which formula should be for finding this number's alphabet

    shanis Why not 250 +220+200+ 10=680?
    And if you use 2013 then beter to use UDF.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Which formula should be for finding this number's alphabet

    ...another option an array formula entered with Ctrl-Shift-Enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Perhaps a more pragmatic solution would be to use TextToColumns to expand the values in the cell across columns and use a regular sumif()
    Last edited by Richard Buttrey; 03-05-2020 at 11:03 AM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    2013
    Posts
    43

    Re: Which formula should be for finding this number's alphabet

    Thanks all for your cooperation.

    Please find the attached sheet, still have some errors. Kindly guide.
    thanks again.
    Attached Files Attached Files

  6. #6
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Which formula should be for finding this number's alphabet

    shanis once again .Why 240 is 70+80+90 but not 220+20 or 200+40 ….
    125 - ?????

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Which formula should be for finding this number's alphabet

    The problem is unclear. I suspect it may be to be done by solver or some vba code

    To sum to the value is clear
    However several combinations can achieve the answer. which one is the best answer? or will any answer do?

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Which formula should be for finding this number's alphabet

    The formula needs to go on row 9. It's looking to analyse the characters in M9. The original formula had a couple of relative cell refs not absolute. This formula - entered with Ctrl Shift Enter puts that right. See attached. Results are in P9:P12. Cut and paste them to J9:J12 if necessary.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Richard Buttrey; 03-06-2020 at 07:08 AM.

  9. #9
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Which formula should be for finding this number's alphabet

    A solver setup to find the combination that matches a givet target value, but as davsth writes there may be more solutions but solver will only find one. Solver model is setu to find an
    exact match.

    There is a VBA code written by Tushar Mehta that will analyse a string of numbers and make a table of the numbers that adds up to a given target. Was a thread about that. will see if I can find it.

    Alf
    Attached Files Attached Files

  10. #10
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Which formula should be for finding this number's alphabet

    To illustrate the point made by davsth about multiple solution I've uploaded the file with Tushar Metha's macro and a improved result layout by forum member John Topley, but I
    could not find the thread.

    Cell D2 you put a number for the number of combinations you wish. A 0 will give you all possible combinations the macro can find.

    Cell D3 is where you put the target value. Range D4:D19 contains the values you can use to find the combinations. This range should be sorted from highest to lowest.

    Select range D2:D19 and click run.

    Value in cell F1 I can't remember what they mean but value in F2 starts with target value, time when the macro was run and the numbers that adds up to target value i.e.
    1 = 240, 2 = 220, 10 = 70 and so forth.

    Alf
    Attached Files Attached Files
    Last edited by Alf; 03-06-2020 at 11:13 AM.

+ 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. [SOLVED] can only copy the number not alphabet?
    By Step01 in forum Excel General
    Replies: 12
    Last Post: 07-22-2018, 12:42 PM
  2. Formula to convert number to alphabet
    By choy96 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-13-2014, 01:25 AM
  3. [SOLVED] How to replace alphabet by a number using VBA?
    By meprad in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-10-2013, 04:21 AM
  4. How to display only certain Number and Alphabet
    By kaneda82 in forum Excel Formulas & Functions
    Replies: 34
    Last Post: 09-09-2012, 08:51 PM
  5. Alphabet/number reference
    By Pasha81 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2009, 01:54 PM
  6. Returning Alphabet Instead of Number
    By shrooms in forum Excel General
    Replies: 10
    Last Post: 01-10-2009, 11:12 AM
  7. Replies: 3
    Last Post: 09-13-2005, 01:05 PM

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