+ Reply to Thread
Results 1 to 12 of 12

Copying a VLOOKUP formula into another cell does not work

Hybrid View

tom hatten Copying a VLOOKUP formula... 09-15-2017, 08:51 AM
Glenn Kennedy Re: Copying a VLOOKUP formula... 09-15-2017, 08:54 AM
tom hatten Re: Copying a VLOOKUP formula... 09-15-2017, 09:06 AM
tom hatten Re: Copying a VLOOKUP formula... 09-15-2017, 09:06 AM
Glenn Kennedy Re: Copying a VLOOKUP formula... 09-15-2017, 09:16 AM
Glenn Kennedy Re: Copying a VLOOKUP formula... 09-15-2017, 09:21 AM
tom hatten Re: Copying a VLOOKUP formula... 09-15-2017, 09:44 AM
Glenn Kennedy Re: Copying a VLOOKUP formula... 09-15-2017, 09:13 AM
tom hatten Re: Copying a VLOOKUP formula... 09-15-2017, 09:33 AM
tom hatten Re: Copying a VLOOKUP formula... 09-15-2017, 09:19 AM
Glenn Kennedy Re: Copying a VLOOKUP formula... 09-15-2017, 09:41 AM
Glenn Kennedy Re: Copying a VLOOKUP formula... 09-15-2017, 09:46 AM
  1. #1
    Forum Contributor
    Join Date
    08-21-2010
    Location
    Bournemouth, England
    MS-Off Ver
    Microsoft 365
    Posts
    215

    Copying a VLOOKUP formula into another cell does not work

    Hello.

    I have attatched a spreadsheet with Table 1 showing a football table, with fixtures and formulas in cells AA5 and AB5 which work perfectly.

    Table 2 shows another table and some forthcoming fixtures. I've copied the formula from Table 1 into cells AA37 and AB37 for Table 2 and taken into account that there are more teams in the second table.

    The formula I have in Table 1, cell AA5, is:
    =VLOOKUP(Y5, $B$5:$U$26,20, 0)*VLOOKUP(Z5, $B$5:$X$26, 23, 0)*$I$28

    As you can see, the formulas in Table 2 do not work and I'm guessing that the problem lies with the numbers (20,0 and 23,0) but I can't figure out what they should be.

    I hope someone can help me.

    Thank you.
    Last edited by tom hatten; 09-15-2017 at 08:52 AM. Reason: Still trying to upload attachment

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copying a VLOOKUP formula into another cell does not work

    =VLOOKUP(Y5, $B$5:$U$26,20, 0) is looking in column U for a match...
    VLOOKUP(Z5, $B$5:$X$26, 23, 0) is looking in column X... so is that intended?

    No sheet was attached...

    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.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

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

    Re: Copying a VLOOKUP formula into another cell does not work

    I've tried the advanced option and the file is showing under Current Attachments (22.7 KB) with the option to remove it, but I can't see how to upload it.
    I tried clicking the upload button on the right-hand side.

    Thank you.

    =VLOOKUP(Y5, $B$5:$U$26,20, 0) is looking in column U for a match...
    VLOOKUP(Z5, $B$5:$X$26, 23, 0) is looking in column X... so is that intended?

    I believe it is intended, yes.
    Attached Files Attached Files

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

    Re: Copying a VLOOKUP formula into another cell does not work

    Oh, there it is

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copying a VLOOKUP formula into another cell does not work

    OK. I'm being thick. In the lower table there was a space after Bournemouth and one before Brighton. Likewise for the second row. Also C Palace is NOT a match for
    Crystal Palace...

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copying a VLOOKUP formula into another cell does not work

    various errors relating to the above, all removed.
    Attached Files Attached Files

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

    Re: Copying a VLOOKUP formula into another cell does not work

    Thank you very much. I really appreciate your help.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copying a VLOOKUP formula into another cell does not work

    So what's wrong with it. It's taking the value for Hungerford in Column U (1.05 at row 10)
    multiplying that by the value for hemel in column X (1.31 at Row 15)
    and multiplying that by 1.71 the value in I28.

    What DO you want it to do??

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

    Re: Copying a VLOOKUP formula into another cell does not work

    Thank you for your help, it's working just as I want it to now. One more question; is it possible to avoid returning a zero in the columns? For example, for Brighton the formula is =W50*V55*R58 returns zero because cell W50 is zero. Is there a way around this? ie, return =V55*R58 instead?

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

    Re: Copying a VLOOKUP formula into another cell does not work

    I'm sorry if I wasn't clear. I want the working formula in cells AA5 and AB5 to work in cells AA37 and AB37. The HOME formula is U*X*I58 and the AWAY formula is W*V*R58

    Thank you.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copying a VLOOKUP formula into another cell does not work

    AA37:

    =IF(VLOOKUP(Y37, $B$37:$U$56,20, 0)=0,1,VLOOKUP(Y37, $B$37:$U$56,20, 0))*IF(VLOOKUP(Z37, $B$37:$X$56, 23, 0)=0,1,VLOOKUP(Z37, $B$37:$X$56, 23, 0))*$I$58

    Basically=IF(Vlookup1=0,1,Vlookup1)*IF(Vlookup2=0,1,Vlookup2)*Fixed cell

    Similarly for AB37.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copying a VLOOKUP formula into another cell does not work

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] Using a Formula with Cell Reference to work in VLOOKUP function
    By Danfishman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2014, 03:01 AM
  2. vlookup won't work on a formula cell
    By buwa84 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-10-2013, 03:03 PM
  3. copying cell contents to new cell in new work sheet
    By Stujaxon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-22-2012, 06:55 PM
  4. copying formula won't work in excel 2010
    By shirahbell in forum Excel General
    Replies: 4
    Last Post: 06-01-2012, 09:30 AM
  5. Replies: 6
    Last Post: 01-10-2012, 10:53 AM
  6. VLOOKUP wont work if the cell contains a formula
    By Tony Vargo in forum Excel General
    Replies: 11
    Last Post: 03-27-2009, 06:16 AM
  7. Need Vlookup to work with formula in reference cell
    By mikeburg in forum Excel General
    Replies: 2
    Last Post: 08-04-2005, 08:05 PM
  8. when copying formulae from one cell to another it does not work
    By Gav in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-27-2005, 10:05 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