+ Reply to Thread
Results 1 to 7 of 7

can you write an excel statement with text to read from another cell?

  1. #1
    Registered User
    Join Date
    01-19-2016
    Location
    cleveland, ohio
    MS-Off Ver
    2016
    Posts
    4

    can you write an excel statement with text to read from another cell?

    Can you write a statement in excel to read a certain cell if another cell says "X"?

    I am pulling this information from a different tab onto another tab so I can use it as a collection of data. Lets call the tab I'm pulling from is called Sales.

    For Example: IF Sales! J481 has an X then pull from Sales! E481.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: can you write an excel statement with text to read from another cell?

    Yes

    =IF(Sales!J481="X", E481, "")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-19-2016
    Location
    cleveland, ohio
    MS-Off Ver
    2016
    Posts
    4

    Re: can you write an excel statement with text to read from another cell?

    I just tried it and it's only showing as false instead of actually pulling the dollar amount in E481.

  4. #4
    Registered User
    Join Date
    01-19-2016
    Location
    cleveland, ohio
    MS-Off Ver
    2016
    Posts
    4

    Re: can you write an excel statement with text to read from another cell?

    Sorry I just realized I didn't have the X in the column yet. I corrected it and now it reads 0. It should read 45.

  5. #5
    Registered User
    Join Date
    01-15-2016
    Location
    Dallas, TX
    MS-Off Ver
    2007
    Posts
    65

    Re: can you write an excel statement with text to read from another cell?

    Try this... Seems the page reference is missing in the function above.

    =IF(Sales!J481="X",Sales!E481,"")

  6. #6
    Registered User
    Join Date
    01-19-2016
    Location
    cleveland, ohio
    MS-Off Ver
    2016
    Posts
    4

    Re: can you write an excel statement with text to read from another cell?

    Thank you! That worked.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: can you write an excel statement with text to read from another cell?

    Good catch Raymondus

+ 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. How to find min value and read write on defined cell
    By love_sick7 in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 09-21-2013, 12:21 AM
  2. [SOLVED] VBA: Read cell name and write it on the perfect place in a .txt
    By ropbasuel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-16-2013, 06:33 PM
  3. [SOLVED] Read two text files without opening and write to another
    By amotto11 in forum Excel Programming / VBA / Macros
    Replies: 56
    Last Post: 08-30-2012, 04:04 PM
  4. Skip The Read Only Prompt When I Open A File - Excel, Open it read-write instead.
    By harry_1805 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2012, 02:14 AM
  5. Replies: 2
    Last Post: 12-30-2011, 06:22 PM
  6. To read many text files and write it in the excel file
    By nynamyna in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-16-2009, 01:51 PM
  7. IF statement to read text in a cell
    By Flashart in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-29-2008, 05:05 PM
  8. Write and Read Data in a text box !
    By e-me in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2007, 04:00 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