+ Reply to Thread
Results 1 to 9 of 9

Formula needed to save manual input

  1. #1
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Formula needed to save manual input

    Hello.
    In any given set of fixtures, I want to enter each home team in column X and each away the team in column Y.
    Is there a way to have the Home Strength calculation show in columns Z and the Away Strength calculation show in columns AA without having to do it manually?

    Each home team's strength number is determined by multiplying the home attacking strength (HAS) in column T with the away defensive strength (ADS) in column W with Cell H30 (T*W*H30)
    Each away team's strength is worked out by multiplying the away attacking strength (AAS) in column V with the home defensive strength (HDS) in column U with Cell Q30 (V*U*Q30)

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula needed to save manual input

    1) The titles in column A need to exactly match the values being used in columns X an d Y. (Bath does not equal Bath City)

    2) VLOOKUP will then do all the work for you.

    HAS: =VLOOKUP(X7, $A$7:$T$28,20, 0)
    ADS: =VLOOKUP(Y7, $A$7:$W$28, 23, 0)

    SO the final formula in Z7, then copy that cell downward:
    =VLOOKUP(X7, $A$7:$T$28,20, 0)*VLOOKUP(Y7, $A$7:$W$28, 23, 0)*$H$30

    3) See if you can now work out the same technique for column AA.


    If you see a #N/A error when you copy down, it's a city spelling error. They must match exactly.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Formula needed to save manual input

    Thank you for a very prompt reply. I'll try your formula for HAS and ADS and then figure out what the formula for HDS and AAS will be. Hopefully by then, I'll be able to understand the formula for AA. Thanks again for your help and I'll post the outcome in this thread.

  4. #4
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Formula needed to save manual input

    Ok. Before I go any further, I need to point something out. Taking Maidenhead as an example, the HAS for Maidenhead when using the calculation =H7/$H$30, produces the number 1.61
    However, using your formula, the HAS for Maidenhead produces the number 1.24 when using =VLOOKUP(X7, $A$7:$T$28,20, 0)

  5. #5
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Formula needed to save manual input

    Ok, I'm playing around with the formula and now realise that when applied to column Z, both formulas produce the same result. Later, I'll be trying a formula for column AA.
    Thank you.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula needed to save manual input

    This is the formula I came up with for AA7:

    =VLOOKUP(Y7, $A$7:$V$28,22, 0)*VLOOKUP(X7, $A$7:$U$28, 21, 0)*$Q$30

  7. #7
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Re: Formula needed to save manual input

    I tried a few ways but they all gave me a #REF! error. Here are a couple I tried:
    =VLOOKUP(Y7, $A$7:$U$28,20, 0)*VLOOKUP(X7, $A$7:$V$28, 23, 0)*$Q$30
    =VLOOKUP(Y7, $A$7:$V$28,20, 0)*VLOOKUP(Y7, $A$7:$U$28, 23, 0)*$Q$30

    I was trying to use your formula for Z7 to work it out but kept hitting a dead end.
    Thank you so much for the final solution, it'll save me hours of time doing it manually. (I usually work out the ratings for as many as 7 different leagues during the week for the weekend fixtures.)
    It'll also help me to wok out any future formulas I might try to implement in the future.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula needed to save manual input

    VLOOKUP(lookup_value, table_array, column_index_num, type_of_lookup)

    Readup in the Excel Help Files (F1) on VLOOKUP. Make sure you understand that 3rd parameter fully.

    lookup_value - the value being searched for in the first column of the table_array
    table_array - an array of columns with data, first column is key for lookup, the other have values to return
    column_index_num - the column number in the array you want the returned value. If the array is B:D and this number is 2, you'd get back the value in column C
    type_lookup - 0 (False) means an exact match must be found



    See post #6

  9. #9
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,289

    Re: Formula needed to save manual input

    Dear Tom, In your sheet found two error.
    First : In cell "A15" Extra space after "Bath " (Kindly remove last space) & In "X7" mentioned "Bath City" Kindly remove city.
    Second : In cell "A16" mentioned "St Albans" & in cell "Y9" mentioned St. Albans. Kindly match both as "St Albans"
    Apply formula in "Z7"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Copy down
    Ensure Array formula [SHIFT+CTRL+ENTER]
    Ref attach file.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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] Cell that allows both formula and manual input options
    By Rustico18 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2017, 01:53 AM
  2. Replies: 7
    Last Post: 07-02-2016, 07:26 PM
  3. Option to put in manual input without erasing the formula.
    By shamsul in forum Access Tables & Databases
    Replies: 3
    Last Post: 07-02-2016, 12:35 AM
  4. [SOLVED] Cell equals formula OR manual input
    By PDBartlett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2014, 05:52 AM
  5. Replies: 1
    Last Post: 02-24-2013, 06:27 PM
  6. [SOLVED] Formula and Manual Input
    By Yidolee in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-18-2013, 01:37 PM
  7. Changing code from Manual input to Calculated input
    By Gertheking in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2012, 11:41 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