+ Reply to Thread
Results 1 to 5 of 5

Formula for providing value if value is shown in other cell

  1. #1
    Registered User
    Join Date
    05-30-2014
    Location
    Linköping, Sweden
    MS-Off Ver
    2016
    Posts
    23

    Formula for providing value if value is shown in other cell

    Hi guys,

    Need your help with this one.

    I need a formula where a value will be provided based on the value of another cell

    A1 A2

    B1 B2


    Say A1 is empty but A2 contains date 01 Aug
    If this is correct I want (with 1 formula) to have B1 as 0 and B2 as 17

    However the trick is that we cannot assume that there is anything in either cells. I have a date formula that will give me dates in different places depending on week/month so the formula needs to simply see that there is a date in there.

    Basically = if value is shown, give me 17, if no value is shown, give me 0.

    Hope you guys can help me on this

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Formula for providing value if value is shown in other cell

    In B1, enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy to B2.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Formula for providing value if value is shown in other cell

    In B1
    Please Login or Register  to view this content.
    and copy across to b2 as well
    Happy with my advice? Click on the * reputation button below

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Formula for providing value if value is shown in other cell

    I love it when we write the same thing and hit the 'send' button at the same time

  5. #5
    Registered User
    Join Date
    05-30-2014
    Location
    Linköping, Sweden
    MS-Off Ver
    2016
    Posts
    23

    Re: Formula for providing value if value is shown in other cell

    Thanks guys,

    I have to admit that this was a bit embarassing as its such a simple thing and I've looked at this formula earlier today in another report...

+ 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. VBA copies formula but result is not shown in cell
    By AWM1966 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2012, 02:40 PM
  2. Replies: 2
    Last Post: 02-02-2012, 03:15 PM
  3. formula SHOWN in one cell, the result in another
    By jaSam in forum Excel General
    Replies: 7
    Last Post: 09-29-2010, 02:56 AM
  4. Replies: 14
    Last Post: 09-11-2009, 08:50 AM
  5. [SOLVED] how to get the formula shown in linked cell's names
    By EXCEL$B!!(BNEWS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-08-2005, 09:05 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