+ Reply to Thread
Results 1 to 3 of 3

If statement with different cells

  1. #1
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Toulouse
    MS-Off Ver
    Excel 2010
    Posts
    141

    If statement with different cells

    Please your help is needed



    I have a selection of 30 number each on one in a specific cell in column F1:F30
    I have to select only five number that shall be placed in columns H1,H10,H15, H20, H25.

    on H9 I will have the Sum of H2:H8
    on H14 I will Have the sum of H11:H13
    on H19 I will have the sum of H16:H18
    on H24 I will have the sum of H21:23
    on H29 I wll have the sum fo H26:28


    Then on E1:E30 I want write a formula that say
    If a number selected in F1:F30 matches with either H1, H10, H15, H20 H25
    then I want say for example
    F2= 20 and if it matches with H10 then the formula in E2 must say the number in H14 shall be displayed in E2


    hope it makes sense
    Thanks

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: If statement with different cells

    I'm not sure I follow this or your similar post https://www.excelforum.com/showthread.php?t=982877.

    Are you able to attach an example to show your layout and expected results?

    If you need to choose values at random from a selection, I'd recommend using a helper column of rand() to generate matches with Large()
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Toulouse
    MS-Off Ver
    Excel 2010
    Posts
    141

    Re: If statement with different cells

    Quote Originally Posted by daffodil11 View Post
    I'm not sure I follow this or your similar post https://www.excelforum.com/showthread.php?t=982877.

    Are you able to attach an example to show your layout and expected results?

    If you need to choose values at random from a selection, I'd recommend using a helper column of rand() to generate matches with Large()


    Please I have 24 item in E9:E32 I can only select 5 item and they must be placed in either P7,P16,P25,P34,P42
    if I unselect on of the 5 item them the corresponding cell in either (P7,P16,P25,P34,P42 ) must be empty

    for example if I select for instance one item in E10 if shall be in one of (P7,P16,P25,P34,P42 ) let say P16 then the
    number in R24 must the shown in M10


    please any help see attachment,
    Attached Files Attached Files

+ 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] If two cells are blank, if statement to show third statement is blank
    By juliewoo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2013, 12:28 PM
  2. [SOLVED] Help with If Statement populating several Cells
    By JPWRana in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-27-2013, 12:55 AM
  3. [SOLVED] Need help with IF statement using different cells
    By JackBauer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-29-2012, 11:06 AM
  4. [SOLVED] If AND statement for cells with #N/A
    By Jaymann in forum Excel General
    Replies: 2
    Last Post: 08-14-2012, 09:08 AM
  5. Replies: 17
    Last Post: 02-12-2012, 06:38 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