+ Reply to Thread
Results 1 to 6 of 6

I need to set the value of rows 2 and three based on the value of row 1

  1. #1
    Registered User
    Join Date
    10-13-2018
    Location
    Arizona
    MS-Off Ver
    Office Professional Plus - Version 1809
    Posts
    8

    I need to set the value of rows 2 and three based on the value of row 1

    Basically, the values of rows 2 and 3 should have four results as shown in the following examples.
    The "*" indicates that there could be additional characters in row 1.

    Examples:

    Row1 Row2 Row3
    blank blank blank
    blank blank blank

    Row1 Row2 Row3
    Won* 1 0 (Where the first three letters in row 1 = "Won")
    blank blank blank

    Row1 Row2 Row3
    blank blank blank (Where the first three letters in row 2 = "Won")
    Won* 0 1

    Row1 Row2 Row3 (Where the first five letters in row 1 = "Match")
    Match* .5 .5
    blank blank blank

  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
    44,053

    Re: I need to set the value of rows 2 and three based on the value of row 1

    ???? I do not understand either your input or outputs...

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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
    10-13-2018
    Location
    Arizona
    MS-Off Ver
    Office Professional Plus - Version 1809
    Posts
    8

    Re: I need to set the value of rows 2 and three based on the value of row 1

    I think I've attached a sample worksheet.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-03-2018
    Location
    mpls
    MS-Off Ver
    360
    Posts
    29

    Re: I need to set the value of rows 2 and three based on the value of row 1

    Here are formulas:

    C4=+IF(ISBLANK($B4),"",IF($B4="Tied",0.5,IF($B4="Won",1,0)))
    D4=+IF(ISBLANK($B4),"",IF($B4="Tied",0.5,IF($B4="Won",0,1)))
    C5 +IF(ISBLANK($B5),"",IF($B5="Tied",0.5,IF($B5="Won",0,1)))
    d5=+IF(ISBLANK($B5),"",IF($B5="Tied",0.5,IF($B5="Won",0,1)))

    Copy as a block into each of the following teams.

  5. #5
    Registered User
    Join Date
    10-13-2018
    Location
    Arizona
    MS-Off Ver
    Office Professional Plus - Version 1809
    Posts
    8

    Re: I need to set the value of rows 2 and three based on the value of row 1

    Works great. Thanks.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: I need to set the value of rows 2 and three based on the value of row 1

    Another one
    Please try at C4 drag to D4 and drag down

    =IF($B4="","",ABS(ABS(($B4="Won")+($B4="tied")/2-MOD(COLUMN()+1,2))-MOD(ROW()-1,3)))
    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] copy rows out of a datasheet based on a code number and past these rows in a new sheet
    By Robert1311 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-11-2018, 11:41 AM
  2. [SOLVED] Macro for copying rows in sheet1 to end of existing rows in sheet2 based on criteria
    By Karl Gustaf Karsten in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2015, 04:19 AM
  3. Need Toggle Button to hide/unhide rows based on cell value in non concurrent rows
    By The Phoenix in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-13-2015, 10:49 AM
  4. Macro copies rows based on condition, BUT rows copy in Wrong order. PLEASE HELP!
    By JAllard1990 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2014, 04:33 PM
  5. [SOLVED] First unhide all rows - then hide rows based on specific cell value for a range of cells
    By robbiekh in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-22-2013, 05:46 PM
  6. Replies: 0
    Last Post: 06-06-2013, 02:03 AM
  7. [SOLVED] Insert Multiple Rows Based Off Number in Cell and Copy Data From Above New Rows
    By tstell1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2012, 04:15 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