+ Reply to Thread
Results 1 to 7 of 7

How to write "If A is typed then use the formula in a specific cell"

  1. #1
    Registered User
    Join Date
    05-08-2015
    Location
    Toronto, ON
    MS-Off Ver
    2013
    Posts
    5

    Unhappy How to write "If A is typed then use the formula in a specific cell"

    Hi! I'm very new to excel. Trying to create a program for window estimates. This formula creates a cost based on window size.

    =IF(D3<6.01,226,IF(D3<7.01,247,IF(D3<8.01,265,IF(D3<9.01,282,IF(D3<10.01,298,IF(D3<11.01,316,IF(D3<12.01,331,IF(D3>=12.01,D3*27.59))))))))

    My problem is there are 9 different window styles. 9 different lines of code similar to the above. I want to have a single cell do the following for eg.

    If window style A is typed into cell B2, then use the formula which is in cell f3
    If window style B is typed into cell B2, then use the formula which is in cell f4

    and so on for all 9 styles. All in one cell. So all I have to do is type A, B... for one of the 9 styles & automatically get the relevant cost based on window size.

    Sorry if this is convoluted, I'd really appreciate any help I can get.

    In the eg. file I have the styles listed one by one. The K column holds the 9 different formulas at the moment.

    I'd like to get rid of this list style, and be able to just type in on any given line "AWN" or "CF" or "CA" and have the relevant formula be applied in the K column.

    Thanks, Steve.
    Attached Files Attached Files
    Last edited by Thermoworld1; 05-08-2015 at 09:57 AM.

  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 2403
    Posts
    44,063

    Re: Please help!

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    It would also be hepful if you were to attach a sample spreadsheet. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

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

    View Pic
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    05-08-2015
    Location
    Toronto, ON
    MS-Off Ver
    2013
    Posts
    5

    Re: Please help!

    Ok thanks.

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to write "If A is typed then use the formula in a specific cell"

    =if(d3>12.01,d3*27.59,lookup(d3,{0,6.01,7.01,8.01,9.01,10.01,11.01,12.01},{226,247,265,282,298,316,331,1e+99}))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Registered User
    Join Date
    05-08-2015
    Location
    Toronto, ON
    MS-Off Ver
    2013
    Posts
    5

    Re: How to write "If A is typed then use the formula in a specific cell"

    Thank you so much! I'll give it a try & let you know.

  6. #6
    Registered User
    Join Date
    05-08-2015
    Location
    Toronto, ON
    MS-Off Ver
    2013
    Posts
    5

    Re: How to write "If A is typed then use the formula in a specific cell"

    Sorry, it doesn't seem to work for me. Any other suggestions? I need a formula that contains the what style is typed scenario.

  7. #7
    Registered User
    Join Date
    05-08-2015
    Location
    Toronto, ON
    MS-Off Ver
    2013
    Posts
    5

    Re: How to write "If A is typed then use the formula in a specific cell"

    Ok. Never mind me. It does work. Thank you.

+ 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