+ Reply to Thread
Results 1 to 4 of 4

If array statements

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    3

    If array statements

    How can i type this out in Excel?
    Ignore my errors, not really good in coding, i hope you guys get a general idea.

    Please Login or Register  to view this content.
    i need to get a formula for excel, this is what i need to get from my formula but so far i keep getting errors, i know somehow i need to use arrays and all but i'm not too sure, please advise.



    Thank you so much

  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: If array statements

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It should be obvious that this precise formula only works with the correct named ranges ("Name","Check").

    Without those, use normal cell references, such as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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
    Registered User
    Join Date
    01-23-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: If array statements

    But i have a whole list of names, all jumbled up. For example,
    Some names may exist in Sheet 1 and may not exist in sheet 2

    Sheet 1
    James
    mary
    Don
    John

    Sheet 2
    Harold
    James
    Mary
    Tim

    I want it to search for James in sheet 1 and James in sheet 2 then check whether the check=1 followed by the X and blank.
    I cannot match the cells one by one i have too many rows.

    Thank you

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

    Re: If array statements

    Where are you putting the results? In a column next to the names? On which worksheet?

    Where is the check value stored?

    Your requirements are vague. Can you be specific, please? Attaching a sample workbook (with your desired outcome) would help.

+ 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. [SOLVED] Need to use array as part of IF statements
    By davidrias in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2013, 03:21 PM
  2. [SOLVED] VBA: Use Array instead of using ElseIf statements
    By Hudas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2012, 12:44 PM
  3. Median Array with 3 if statements
    By dstogner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 10:14 PM
  4. Using 2 If Statements and searching the entire array
    By afriedman in forum Excel General
    Replies: 3
    Last Post: 01-27-2011, 01:10 PM
  5. dim statements for worksheets array
    By RichardVisteon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2006, 07:40 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