+ Reply to Thread
Results 1 to 7 of 7

Move data with IF

  1. #1
    Registered User
    Join Date
    12-19-2019
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    6

    Move data with IF

    Good day. I have a spreadsheet attached. Very simple. If the trip in Personal, by entering "P" in "E" column, the total milage must be transferred to "G" column (Private). The same applied if you enter "B" in "E" column, that must be transferred to the "H" column. I know that there must be an IF used somehow, but have no idea.

    Regards,
    Dmitri
    Attached Files Attached Files

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

    Re: Move data with IF

    Welcome to the forum.

    What do you mean EXACTLY by transfer? You cannot MOVE data with a formula.

    Maybe you just mean this:

    =IF(E4="P",F4,"")

    =IF(E4="B",F4,"")
    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.

  3. #3
    Registered User
    Join Date
    12-19-2019
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    6

    Re: Move data with IF

    Hi Ali. If the person enters a letter in a specific column, then the data must be displayed in a specific column.

  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,489

    Re: Move data with IF

    That's different. Please see post #2 for a solution.

  5. #5
    Registered User
    Join Date
    12-19-2019
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    6

    Re: Move data with IF

    You are a genius. Thanks so much. I know just enough excel to be dangerous.

  6. #6
    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,489

    Re: Move data with IF

    This is nothing genius - it's a really simple formula, but I've been using Excel for a long time.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Registered User
    Join Date
    12-19-2019
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    6

    Re: Move data with IF

    Done and thanks once again.

+ 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. Capture particular Data and Paste into Sheet 3 PLUS Disect sort copy and move data.
    By Potholes in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 06-03-2019, 08:57 AM
  2. [SOLVED] move data from diff rows in 1 column into new columns based on dup data in another field
    By lxndeb in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-01-2014, 11:50 PM
  3. [SOLVED] IF data on opened worksheet has blank data then cancel macro and move onto next part
    By jonathan.haynes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2013, 07:11 AM
  4. Need to move data that matches criteria in cell and move to new worksheet
    By panagle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2013, 09:23 AM
  5. Replies: 1
    Last Post: 07-14-2008, 03:24 PM
  6. [SOLVED] enter data in cell which will start macro to move data to sheet2
    By Tommy in forum Excel General
    Replies: 0
    Last Post: 05-12-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