+ Reply to Thread
Results 1 to 5 of 5

Changing Column Value Based on Another Column Value

  1. #1
    Registered User
    Join Date
    01-03-2019
    Location
    morgantown wv
    MS-Off Ver
    2010
    Posts
    1

    Changing Column Value Based on Another Column Value

    Hi,


    I am fairly new to excel and was hoping to get some help. I will try to explain the best I can on what I need.

    I have two columns of numbers that I am calculating multiple formulas into different cells from. I am down to the very last thing I need to do and I am stuck. Here is an example on what I need.

    So column B...formula uses columns A to calculate equation. Column A will be filled in throughout this year (one row for each week). So as of now Column B shows 0.00 if column A does not have a number listed. So I created a formula to hide the 0 which works and makes it look blank. But more I think about it, there is a chance that Column A will have a 0 in it once or twice this. Therefor Since the formula in Column B multiplies Column A, Column B will have a 0 and I want this 0 to show since Column A has a 0.

    So long story short. If column A cell is blank, I need column B cell to also be blank. If column A has any number in it, 0 included, I need column B to perform the equation even if the answer is 0.


    Quick example below: When column A has a 0 I need column B to do the equation which would also give an answer of 0 and I need this 0 to show in excel. When there is nothing written in Column A I need Column B to show blank... As of now column B still shows 0 in my excel sheet. I know that I can just erase the formula in column B and only add it when Column A has a number but I was hoping to have all the formulas completed so that I can lock down everything except for the numbers I need to put in later.

    Column A Column B
    Week 1 2 4
    Week 2 3 6
    Week 3 0 0
    Week 4 4 8
    Week 5
    Week 6


    Thanks
    Last edited by AliGW; 01-04-2019 at 02:31 AM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Formula Help

    Hello wvford. Welcome to the forum.

    Before we get started:

    As a new member you need to familiarize yourself with our forum rules. There aren't many of them and one of them is

    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.
    Last edited by AliGW; 01-04-2019 at 02:30 AM.
    Dave

  3. #3
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Formula Help

    You need to use an IF statement. =if(A1<>"",formula,"") it reads: if there is something (NOT a blank) in A1, then do YOUR FORMULA, otherwise return a BLANK.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,774

    Re: Changing Column Value Based on Another Column Value

    As has been pointed out, your thread title was inadequate. As you are a new member, I have changed it for you this time by way of an example. Please note for future reference that we require more explicit thread titles. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Changing Column Value Based on Another Column Value

    In B2

    =IF(A2="","",A2*2)
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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: 5
    Last Post: 02-16-2018, 06:50 AM
  2. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  3. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  4. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  5. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04: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