+ Reply to Thread
Results 1 to 4 of 4

how to make a cell readout a certain number based on the number from a different cell

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    SD
    MS-Off Ver
    Excel 2010
    Posts
    2

    how to make a cell readout a certain number based on the number from a different cell

    Hello all,

    I have two charts, one chart has money amounts in it ie. 9.99, 10.00, 30.00 and so on. my second chart is doign math for me based off of my first chart. what I need is the second chart to display the same number or sometimes a different number based on what the number is. So cell G20 needs to display the same thing as cell g3 when the total in g3 is 9.99, but when g3 says 10 cell g20 needs to display 30. i have used this equation =IF(G3=10,"$30.00",G3) to get cell g20 to dsplay 30 when cell g3 says 10, but i need it to also display 30 when cell g3 says 35,40,45,50. any help would be appreciated

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: how to make a cell readout a certain number based on the number from a different cell

    This might work:

    =IF(OR(G3=10,G3=35,G=40,G3=45,G3=50),"$30.00",G3)

  3. #3
    Registered User
    Join Date
    07-23-2013
    Location
    SD
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: how to make a cell readout a certain number based on the number from a different cell

    Quote Originally Posted by daffodil11 View Post
    This might work:

    =IF(OR(G3=10,G3=35,G=40,G3=45,G3=50),"$30.00",G3)


    Perfect!! works like a charm! thanks!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: how to make a cell readout a certain number based on the number from a different cell

    Quote Originally Posted by daffodil11 View Post
    This might work:

    =IF(OR(G3=10,G3=35,G=40,G3=45,G3=50),"$30.00",G3)
    Here's a shortcut:

    =IF(OR(G3={10,35,40,45,50}),"$30.00",G3)

    Also, are you sure you want to put quotes around 30? Quoting numbers turns them into TEXT strings.

    The general rule of thumb is...

    Quote TEXT but don't quote numbers.

    "Yes"
    30
    "X"
    1002

    =IF(OR(G3={10,35,40,45,50}),30,G3)

    Then, if you want it to display as $30.00 use cell formatting.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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: 1
    Last Post: 07-18-2013, 10:11 AM
  2. Make a cell a random number based on a counter
    By steinfm in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-27-2012, 02:15 AM
  3. [SOLVED] Excel VBA/Macro - Copy Number of Rows based on the number in a cell to another sheet
    By diane.alexander58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2012, 11:32 AM
  4. VBA code to unhide X number of rows based on a number entered into a cell above
    By gazza365 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2010, 08:48 PM
  5. formatting cell number based on previous cell number
    By Pasquini in forum Excel General
    Replies: 3
    Last Post: 06-20-2006, 01:40 AM

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