Results 1 to 6 of 6

Insert value from cell when three conditions in row are met

Threaded View

  1. #1
    Registered User
    Join Date
    09-21-2017
    Location
    Idaho, USA
    MS-Off Ver
    15.33
    Posts
    3

    Insert value from cell when three conditions in row are met

    Hi Thread -- I’m approaching failure in my quest to write an IF/THEN formula in Excel. Doh! I think my logic is there, but I'm searching for the right commands and order of operations.

    IF CELL “A2” MATCHES CELL IN RANGE “DATABASE!A:A”,
    AND IN “ROW WHERE “A2” MATCHES CELL IN RANGE “DATABASE!A:A””, “DATABASE!B$” = 2003,
    AND IN “ROW WHERE “A2” MATCHES CELL IN RANGE “DATABASE!A:A””, “DATABASE!C$” = 1,
    THEN, “=DATABASE!E$” OF THE ROW WHERE “A2” MATCHES CELL IN RANGE “DATABASE!A:A”, ELSE = -99.

    Any and all help is appreciated.

    For context, the reference database contains 10 years of quarterly earnings data for several thousand ID’s, laid out in panel/repeated measures/long format. An ID only includes quarterly earnings data for quarters in which there is a record of earnings. I am working to transpose this reference database into a wide-format database that indicates: (1) if that ID had any earnings for in each of the 40 possible earning quarters; and (2) if yes, what their earnings were. A sample workbook is provided below.
    Last edited by mpoppen; 09-21-2017 at 01:52 PM. Reason: Title was too broad.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Can an IF formula in a cell be written as VBA
    By deek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-18-2014, 12:30 PM
  2. [SOLVED] Formula written as Macro
    By ALEZI in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-11-2013, 10:28 AM
  3. Array formula that uses last written cell
    By dcguerra in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2013, 03:16 PM
  4. formula's value written to clipBoard
    By bstubbs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2009, 07:58 PM
  5. input box value into formula written with VBA
    By jcgroove in forum Excel General
    Replies: 1
    Last Post: 06-09-2009, 07:34 PM
  6. Pre-written formula
    By Newton1234 in forum Excel General
    Replies: 2
    Last Post: 06-05-2008, 04:51 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