+ Reply to Thread
Results 1 to 7 of 7

If statement Problem

  1. #1
    Registered User
    Join Date
    06-03-2013
    Location
    Riyadh
    MS-Off Ver
    Office 365 Subscription
    Posts
    47

    If statement Problem

    Guys ,


    I have a chain of 4 hotels say from b7 to b10. Each hotel will take certain no of years to construct. once construction is finished it will start generating revenue from next year.


    Table 1 shows the construction period where 1= construction and 0=no construction.


    Table 2 This table should be automatically updated once construction finished and it should start earning revenue i.e. 1= revenue and 0= no revenue


    Table 3 This is what i am getting using if statement which is wrong. Revenue should continue instead of just one year as shown in table 3


    Please advice where is problem in my formula. End result should look like table 2 YOu can download the problem file from

    https://mega.nz/#!s58GwRpI!dJnT4kTq2...STz1KbtsPehXiY
    Attached Files Attached Files
    Last edited by excobra; 08-24-2016 at 04:19 AM. Reason: Uploading file

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

    Re: If statement Problem

    Please attach the workbook here, as some members will not access file-sharing sites.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    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
    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,829

    Re: If statement Problem

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.mrexcel.com/forum/excel-q...t-problem.html

  4. #4
    Registered User
    Join Date
    06-03-2013
    Location
    Riyadh
    MS-Off Ver
    Office 365 Subscription
    Posts
    47

    Re: If statement Problem

    Quote Originally Posted by AliGW View Post
    Please attach the workbook here, as some members will not access file-sharing sites.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Other forum link where i have posted the same question

    http://www.mrexcel.com/forum/excel-q...ml#post4614041

    Thanks for the guidance. Done
    Last edited by excobra; 08-24-2016 at 06:05 AM.

  5. #5
    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,829

    Re: If statement Problem

    Try this in D24 copied across and down:

    =IF(COUNTIF(D7:$M7,1)>0,0,1)

    You need to edit your post #4 and add this link:

    http://www.mrexcel.com/forum/excel-q...ml#post4614041

  6. #6
    Registered User
    Join Date
    06-03-2013
    Location
    Riyadh
    MS-Off Ver
    Office 365 Subscription
    Posts
    47

    Re: If statement Problem

    Thanks It worked

  7. #7
    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,829

    Re: If statement Problem

    You're welcome.

    You might want to have a read through the forum rules before posting 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. IF statement problem
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2011, 08:18 AM
  2. If statement problem
    By Scotr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-24-2011, 01:24 PM
  3. Now() statement within a IF(AND statement problem
    By Modify_inc in forum Excel General
    Replies: 3
    Last Post: 03-27-2011, 04:17 PM
  4. Problem with IF statement within a COUNTIF statement
    By girlofscience in forum Excel General
    Replies: 5
    Last Post: 04-22-2009, 10:20 AM
  5. If statement problem
    By dwest in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2009, 10:38 AM
  6. Still having problem with IF-Then statement
    By excelnut1954 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-17-2005, 10:00 PM
  7. If Statement Problem
    By TB via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  8. [SOLVED] If Statement Problem
    By TB via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-29-2005, 06:05 PM

Tags for this Thread

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