+ Reply to Thread
Results 1 to 4 of 4

how to use code to reference a variety of other cells? stumped excel newbie

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    2

    how to use code to reference a variety of other cells? stumped excel newbie

    Hi

    Glad i found this forum - already learned a lot.

    I am building a spreadsheet that references 'LHA rent rates' listed in other cells.

    Example table
    Bed rate Code: LHA per week:
    0 - £55.00
    1 - £91.85
    2 - £109.61

    (Ie two columns with six cells. The first number before the dash are in a separate column. Each of these £ amounts will be in a separate cell.)

    In another part of the sheet, i want to be able to type '0' in Cell 1, and this will trigger a formula in Cell 2 to retrieve the correct £ amount i.e., £55.00 in the 'example table' above. Likewise if i change Cell 1 to '2', then Cell 2 automatically updates to £109.61.

    I think this would be a long IF formula in Cell 2, but i have no idea how to do it.

    Can someone help me create a formula?

    Many thanks in advance
    Last edited by arlojwhite; 01-06-2014 at 04:57 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to use code to reference a variety of other cells? stumped excel newbie

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    01-06-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: how to use code to reference a variety of other cells? stumped excel newbie

    Hi

    Have attached a new spreadsheet to illustrate what i am trying to achieve as you suggested.

    Two tabs - before and after.

    In the before tab, the greyed out area self-completes from another worksheet (the £ amounts vary depending on area).

    I've removed everything else from the worksheet. I want to be able to complete the next bit - white boxes:
    A10 - A14
    B10 - B14
    C10 - C14

    The salmon-coloured boxes (D10-D14) should have the formula and self-complete.

    I want to be able to change the number reference in the C10-C14 column, which will automatically cause the D10-D14 column to update.

    in the AFTER tab, i have typed '1' in C10. This made D10 extract the data from cell C3, so the £91.15 shows. If i were to later change C10 to '4', then D10 updates itself to £155.77.

    Hope this helps. I guess the formula in D10 will have 5 options, which will only populate a result if 0-4 is typed in C10. I would like that if anything else is typed in C10 OTHER THAN 0-4, then D10 shows £0.

    Hope this helps explain.

    Thanks for quick response!
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to use code to reference a variety of other cells? stumped excel newbie

    In D10 Cell

    =IFERROR(VLOOKUP(C10,$B$2:$C$6,2,FALSE),"")

    Drag it down...

    In D16 cell

    =SUM(D10:D14)

+ 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. Replies: 6
    Last Post: 06-10-2013, 06:39 PM
  2. Replies: 0
    Last Post: 09-19-2012, 09:25 AM
  3. Replies: 1
    Last Post: 03-22-2012, 05:01 AM
  4. Master reset code bug - stumped again
    By peter.thompson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2006, 03:38 AM
  5. Master reset code -stumped
    By peter.thompson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-06-2006, 09:35 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