+ Reply to Thread
Results 1 to 9 of 9

Input text relevant to another cell

Hybrid View

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    Peterborough
    MS-Off Ver
    Excel 2010
    Posts
    4

    Input text relevant to another cell

    Hello,

    I am running a small Spreadsheet, now where the problem lies is this:

    I have a column called 'project' and column called 'Cost' -

    Within the column called 'project' - i am running Data validation with drop down so they can select from a list

    In the column called 'cost' i need a formula that inputs a certain cost relevant to what is dropped down from the project column..

    Hope this makes sense!

    Thanks

    Kris
    Last edited by Kris.Elder; 12-13-2012 at 06:11 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,424

    Re: Excel 2010 Formula Help

    This is quite straightforward, but before we can help you will need to change your title - read the Forum Rules at the top of the screen. Also, it would help if you could describe your data layout in more detail, i.e. which cells/columns you are using, or attach a sample workbook (the FAQ describes how).

    Pete

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,488

    Re: Excel 2010 Formula Help

    If you have a table of projects and costs, you can use VLOOKUP for single entries per project, or SUMIF for multiple entries per project.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    12-13-2012
    Location
    Peterborough
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Input text relevant to another cell

    Hi,

    I am using column D for Project (which has data validation) and E for Cost

    D8 has a certain project in and i want E8 to input the cost for that project

    Kris

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,424

    Re: Input text relevant to another cell

    Well presumably you have a table somewhere which shows the costs for each project - where is that located, and how is it laid out?

    Pete

  6. #6
    Registered User
    Join Date
    12-13-2012
    Location
    Peterborough
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Input text relevant to another cell

    No i don't, the formula i am trying to use at the minute is:

    =IF(ISNUMBER(SEARCH("project 1",D8)), "£###", IF(ISNUMBER(SEARCH("Project 2",D8)),"£###",""))

    but the problem i am having is because i am using 'Data Validation -Lisa' so they can just select the project, some of the projects use the same words e.g Project 1, New Building, Old Building, Project 3 - but all have different costs, so i think it needs to be 'absolute'?

    Kris

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,424

    Re: Input text relevant to another cell

    As I said before, it would help if you attach a sample workbook to your post so we can see what you have and how your data is organised. You should de-sensitize your data before posting (i.e. remove anything of a confidential nature), but retain the overall structure of the data and indicate clearly what you want to achieve.

    Pete

  8. #8
    Registered User
    Join Date
    12-13-2012
    Location
    Peterborough
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Input text relevant to another cell

    Please see attached file of what i am trying to do,

    Hope this helps!

    Kris
    Attached Files Attached Files

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,424

    Re: Input text relevant to another cell

    In the attached file I've added the costs to column C in the Data sheet to make a little table. I've also set up data validation in column D of Sheet1 so you can choose from that list in the Data sheet, and then put this formula in E3:

    =IFERROR(VLOOKUP(D3,Data!$B$3:$C$8,2,0),"")

    This is then copied down to the bottom of your table.

    Hope this helps.

    Pete
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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