+ Reply to Thread
Results 1 to 3 of 3

If condition, copy cell value to another cell

  1. #1
    Registered User
    Join Date
    02-26-2018
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    9

    If condition, copy cell value to another cell

    Hi all,

    I have a drop down list with hours, days (A1)

    If I choose "days" and type 168 in the next cell (B1)
    it should come out like this below:

    (A4)Days: (B4) =IF(A1="days"; B4=B4)
    (A5)Hours: (B5)=IF(A1="days"; B4=B4*7)


    So my problem is that excel needs B4 to be equal to B4 and then sets TRUE.
    So if I set (B1) to 168, excel write FALSE, and If I manually type 168 in (B4) it goes TRUE.
    But I want excel to copy 168 from (B2) and paste that into cell B4 and paste it into 1 (B2*7)

    Sorry for my bad english and explanation, hope you understand.

    Best regards

  2. #2
    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
    52,946

    Re: If condition, copy cell value to another cell

    You cannot have a value AND a formula in a cell, you need to have 1 OR the other.

    Also, formulas cannot "push" data/answers to another cell, they can only affect the cell they reside in.
    I think you need to rethink how you want to do this?
    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

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: If condition, copy cell value to another cell

    I agree with Ford,

    However if you are wanting B4 to be calculated from b1

    IF(A1="days"; B4=B1, B1/7)

+ 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: 4
    Last Post: 10-23-2014, 01:28 PM
  2. [SOLVED] Copy multiple cell contents to another cell, IF a condition is met
    By sted999 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2014, 11:24 AM
  3. Replies: 7
    Last Post: 08-09-2013, 09:08 PM
  4. Copy data from one cell to another whenever condition is met
    By weili.lim.2011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2013, 05:29 AM
  5. Copy a cell/value, when a condition is met
    By Marc Poos in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-23-2013, 10:07 AM
  6. Copy a value of cell with condition
    By Bhuvana_In in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-16-2010, 07:42 PM
  7. Copy the value from a cell with condition. Help please
    By excel_guest in forum Excel General
    Replies: 4
    Last Post: 06-20-2006, 06:20 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