+ Reply to Thread
Results 1 to 4 of 4

IF this or this then get value from range a to b else get value from range x to z

  1. #1
    Registered User
    Join Date
    11-21-2019
    Location
    [email protected]
    MS-Off Ver
    2013
    Posts
    2

    IF this or this then get value from range a to b else get value from range x to z

    Hi All

    Would be nice if anyone can help!

    I have the following setup:

    Columns
    P - Q - R - S - T - U - V - W

    Column P I have the formula which is not working.

    In one of the column from Q to U I have a value. So sometimes it's in column q sometimes in T and the other columns are empty (but have a formula in it).

    and then I have the same from v to w. In one of the column is a value, sometimes in v sometimes in w.


    With my formula in P I want to get the value from v to w but only if there is no value in v or w. If there is a value in v or w I want to get that value.

    This is my formula:
    =IF(OR((V31:W31="Robinsonlist");(V31:W31="Flagged AND"));(INDEX(V31:W31;MATCH(FALSE;(V31:W31)="";0)));(INDEX(Q31:U31;MATCH(FALSE;(Q31:U31)="";0))))

    The forumale gets the error "a value used in the formula is of the wrong data type".

    Many thanks for your help in advance!

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: IF this or this then get value from range a to b else get value from range x to z

    please post an attachment as per the banner. its impossible for us to evaluate your formula with no data, or know what the correct answer is

    Im convinced the formula is over complicated

  3. #3
    Registered User
    Join Date
    11-21-2019
    Location
    [email protected]
    MS-Off Ver
    2013
    Posts
    2

    Re: IF this or this then get value from range a to b else get value from range x to z

    Sorry, attached the excel file, the formula is under the tab "REVIEW ITEMS" in CELL P31.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: IF this or this then get value from range a to b else get value from range x to z

    in the 3 cells with value in I see that they are not entered as an array. (shift control enter) as they do not have curly brackets around them. Do you get the right answer if you do this?

+ 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. Copy range A of cells if value is in range B & paste in range B/Multiple Or
    By Jeremycad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2018, 04:28 AM
  2. Replies: 4
    Last Post: 02-24-2017, 02:06 AM
  3. Replies: 9
    Last Post: 05-19-2016, 06:48 PM
  4. Replies: 0
    Last Post: 05-18-2016, 04:52 PM
  5. [SOLVED] Help! - Copy Range (Sheet1,A10:F50), Paste Range (Sheet 2,A1:F41), Offset Range & Repeat
    By cjtimmer in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-30-2015, 06:27 PM
  6. [SOLVED] Count number of occurances below a range, within a range, and below a range
    By maacmaac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2013, 11:36 PM
  7. send to range, popup box to input what the range should be each time/select range
    By lax2734 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2012, 01:37 AM

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