+ Reply to Thread
Results 1 to 4 of 4

IF STATEMENT - "Else" move to the next cell

  1. #1
    Registered User
    Join Date
    02-04-2021
    Location
    Athens
    MS-Off Ver
    2019
    Posts
    2

    IF STATEMENT - "Else" move to the next cell

    Hello everyone,

    I'm hoping you can assist me with the issue below. I think it's very simple but i cannot find the solution.

    So.

    Sheet1 & Sheet 2

    Capture.PNG -> in Sheet 1 i have some details



    Capture2.PNG -> in Sheet 2 i want automatically to have the values "Brand Name" "Type" "Home away" "Qty" of the details whose Qty is <=1.

    I am using an IF function for each cell.

    For returning me Brand Name:
    =IF(Sheet1!D2<=1;Sheet1!A2;"")

    For returning me Type:
    =IF(Sheet1!D2<=1;Sheet1!B2;"")

    For returning me Home/away:
    =IF(Sheet1!D2<=1;Sheet1!C2;"")

    and for returning me Qty:
    =IF(Sheet1!D2<=1;Sheet1!D2;"")


    According to the above, when the value does not meet my criteria (Qty is <=1) it returns me a blank cell which i would like to avoid. In "false" case, i would like to move to the next cell. How can i do that?

    Capture3.PNG -> that's what i expect to have as a result.

    FYI, the above is just an example. Actually i have many details.

    Thank you in advance!!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: IF STATEMENT - "Else" move to the next cell

    Next time post the sheet, not a non-editable picture of it!!


    =IFERROR(INDEX(Sheet1!A:A,AGGREGATE(15,6,ROW(Sheet1!$A$2:$A$100)/((ISNUMBER(Sheet1!$D$2:$D$100))*(Sheet1!$D$2:$D$100<=1)),ROWS(A$2:A2))),"")

    copied across and down. In GR, you may need to use ; instead of ,
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-04-2021
    Location
    Athens
    MS-Off Ver
    2019
    Posts
    2

    Re: IF STATEMENT - "Else" move to the next cell

    You are AMAZING Mr. Glenn.

    I thought it was much simpler.

    Many thanks!!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: IF STATEMENT - "Else" move to the next cell

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

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

+ 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 to compare two dates and insert "Yes" or "No" in a third cell
    By tbrookes3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-03-2015, 11:44 PM
  2. Replies: 12
    Last Post: 06-12-2014, 02:11 PM
  3. Help with "Move" Formula Dependant on "IF" Statement
    By financeanalyst in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-15-2014, 03:29 PM
  4. [SOLVED] Cell Color with"if" statement testing for a "text" value
    By ARocketScientist in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2014, 09:01 PM
  5. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  6. [SOLVED] Combine "=IF" and "=HOUR" statement for cell formula
    By chriswhite1982 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2013, 02:42 PM
  7. Replies: 3
    Last Post: 12-14-2006, 01:36 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