+ Reply to Thread
Results 1 to 3 of 3

what should I enter to get the cell to do this?

  1. #1
    Registered User
    Join Date
    03-06-2015
    Location
    Minneapolis MN
    MS-Off Ver
    2013
    Posts
    1

    what should I enter to get the cell to do this?

    I want to format a cell to use this formula =A2*B2+D2+H2+K2+P2+R2+V2+J2+N2 if the value in Q2 is less than 11, I want the cell to choose this formula =A2*B2+D2+H2+K2+P2+S2+V2+J2+N2 if the value of Q2 is >=11 and <=20, I want the cell to choose this formula =A2*B2+D2+H2+K2+P2+T2+V2+J2+N2 if the value of Q2 is >=21 and <=30, I want the cell to choose this formula =A2*B2+D2+H2+K2+P2+U2+V2+J2+N2 if the value of Q2 is >=31 and <=40

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: what should I enter to get the cell to do this?

    There are some holes in your conditions, but maybe

    =A2*B2 + D2 + H2 + K2 + P2 + V2 + J2 + N2 + INDEX(R2:T2, MATCH(Q2, {-99,11,21,31}))
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: what should I enter to get the cell to do this?

    Or perhaps this (longer)....
    =A2*B2+D2+H2+K2+P2+V2+J2+N2+IF(AND(Q2<=40,Q2>30),U2,IF(Q2>20,T2,IF(Q2>10,S2,R2)))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] How do I create a button to enter a number in a cell and then tab/enter to next cell
    By MatiasGarcia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2013, 05:29 PM
  2. [SOLVED] Return alt-enter when enter is pressed in a specific cell
    By bigsteve in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2013, 10:21 AM
  3. Enter data, drop down 1 cell, enter more... etc...
    By Darth269 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2012, 05:21 PM
  4. [SOLVED] How to force <enter> to behave like <alt> + <enter> within a cell
    By luckyinky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2005, 12:05 PM
  5. [SOLVED] how do I enter a RETURN (Enter) in a cell in EXCEL2003
    By Micheline in forum Excel General
    Replies: 5
    Last Post: 04-14-2005, 05:06 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