Results 1 to 10 of 10

If value is true add cell to the right...

Threaded View

minnewastawsd If value is true add cell to... 10-05-2011, 12:50 PM
NBVC Re: If value is true add cell... 10-05-2011, 12:54 PM
ConneXionLost Re: If value is true add cell... 10-05-2011, 12:56 PM
NBVC Re: If value is true add cell... 10-05-2011, 01:22 PM
minnewastawsd Re: If value is true add cell... 10-06-2011, 10:55 AM
NBVC Re: If value is true add cell... 10-06-2011, 10:58 AM
minnewastawsd Re: If value is true add cell... 10-06-2011, 11:19 AM
NBVC Re: If value is true add cell... 10-06-2011, 11:22 AM
minnewastawsd Re: If value is true add cell... 10-06-2011, 12:12 PM
NBVC Re: If value is true add cell... 10-06-2011, 01:15 PM
  1. #1
    Registered User
    Join Date
    10-05-2011
    Location
    Morden, MB
    MS-Off Ver
    Excel 2010
    Posts
    4

    If value is true add cell to the right...

    Any time a cell A$ (or A2 till A45 ect...) = John Smith, add cell to the right

    This will have to be done for MANY cells and it won’t make sense to type out long stings of code like the one below. The code below does do what I want, but there must be a simpler way

    Code is E2
    =IF(A1=D2,B1,0)+IF(A2=D2,B2,0)+IF(A3=D2,B3,0)+IF(A4=D2,B4,0)+IF(A5=D2,B5,0)+IF(A6=D2,B6,0)

    A---------------------B-----C--------D-------------------E
    1 John Smith-----4--------------Totals
    2 John Smith-----2--------------John Smith------14
    3 Jane Doe--------5--------------Jane Doe---------16
    4 John Smith-----8
    5 Jane Doe--------6
    6 Jane Doe--------5
    Last edited by minnewastawsd; 10-05-2011 at 12:54 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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