+ Reply to Thread
Results 1 to 4 of 4

Need help with IF THEN with a true result sending the input to a certain cell

Hybrid View

  1. #1
    Registered User
    Join Date
    06-20-2011
    Location
    Connecticut, USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Need help with IF THEN with a true result sending the input to a certain cell

    I am trying to find a way to take an entered number in an If /Then function when true to have that number go to a certain cell.
    If I enter the number 100 in A1, I want it to then put 100 into Cell B1, if the number entered is 500, then put 500 into Cell C1., if 1000 then put 1000 in D1 and so on. The numbers that can be entered are; 100, 250, 500, 1000, 2500, 5000, and 10000 so there would be 7 different cells to go to.

    How would I go about doing this?

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Need help with IF THEN with a true result sending the input to a certain cell

    Try entering the formula below in B1, then filling right through H1:

    =IF(MATCH($A$1,{100,250,500,1000,2500,5000,10000},0)=COLUMN()-1,$A$1,"")

    EDIT: The below version handles errors better:

    =IFERROR(IF(MATCH($A$1,{100,250,500,1000,2500,5000,10000},0)=COLUMN()-1,$A$1,""),"")
    Last edited by CAntosh; 03-15-2016 at 11:42 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    11-15-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    538

    Re: Need help with IF THEN with a true result sending the input to a certain cell

    Another way, insert a row so that everything you have on row 1 is instead on row 2. Enter:
    B1=100
    C1=250
    D1=500
    E1=1000
    F1=2500
    G1=5000
    H1=10000

    B2=if($a2=b$1,$a2,"")
    and copy that over to H2.

    You enter your value in A2.

    Then you can adjust row 1 if ever needed, without changing formulas. The row 1 cells will be "hardwired" rather than formulas. You can also copy row 2 down to have multiple A values.
    Chip, if you can read this, you're STILL making the world a better place with your immeasurably valuable gifts. Every week, you continue to help me (and untold numbers of others) tremendously. Practically no alternative outlets can match your effectiveness, even over the vast number of topics you demystify and empower usage of. You were, and still are, amazing.

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,641

    Re: Need help with IF THEN with a true result sending the input to a certain cell

    Post deleted

+ 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. VBA Vlookup to input result(formula) into a cell
    By Ksharpes in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-30-2015, 12:04 PM
  2. Replies: 1
    Last Post: 09-18-2013, 01:58 PM
  3. Use input box result to select a cell
    By Hobbage in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-23-2013, 12:20 PM
  4. Color Shaded Result in a cell of different input values
    By Google747 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2012, 05:47 AM
  5. IF True result in different cell
    By firehousetk in forum Excel General
    Replies: 1
    Last Post: 11-02-2011, 02:22 PM
  6. if result in another cell is true
    By macke in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-05-2008, 10:30 PM
  7. Replies: 0
    Last Post: 03-10-2005, 12: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