Results 1 to 8 of 8

Assigned value to cell based on two references

Threaded View

J-Tin Assigned value to cell based... 10-15-2013, 08:18 AM
XOR LX Re: Assigned value to cell... 10-15-2013, 08:53 AM
J-Tin Re: Assigned value to cell... 10-15-2013, 09:56 AM
{=OR(value=array)} Re: Assigned value to cell... 10-15-2013, 11:03 AM
XOR LX Re: [Solved] Assigned value... 10-15-2013, 10:45 AM
XOR LX Re: [Solved] Assigned value... 10-15-2013, 11:31 AM
{=OR(value=array)} Re: [Solved] Assigned value... 10-15-2013, 12:05 PM
XOR LX Re: [Solved] Assigned value... 10-15-2013, 12:19 PM
  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Assigned value to cell based on two references

    Sorry, I know the title may be a bit ambiguous and general, but I can't think of an easy way to describe my problem!

    I currently have a chunk of data, to which I'm trying to assign a group, and then count how many occurences there are of the said group. I'll try and explain a little better in a table..... As an example, my data follows this pattern (which is a simplified form of the actual data):


    1 a
    1 a
    3 b
    6 a
    4 a
    4 b
    4 a
    2 b

    The two groups are "a" and "b". If a number in the first column is followed by a "b" in the second, all occurences of that number need to be assigned a "b". So if there are multiple occurence, 2 of which are "a", and 1 "b", they all need to be assigned "b". As an example based on the above data, I need it to read:

    1 a
    1 a
    3 b
    6 a
    4 B rather than a
    4 b
    4 B rather than a
    2 b

    I've been messing with IF statements with AND and OR's, and trying to think my way round a VB solution if needed, but drawing a blank! I hope I've explained it well enough, any help would be greatfully received!
    Last edited by J-Tin; 10-15-2013 at 09:57 AM. Reason: solved

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Search for a cell value based on 2 references
    By IN_FOR_SIN in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-07-2013, 09:05 AM
  2. Replies: 2
    Last Post: 07-24-2012, 11:47 AM
  3. Cell value based on three references cells
    By ChrisNor in forum Excel General
    Replies: 4
    Last Post: 04-17-2009, 07:26 AM
  4. return cell references based on criteria
    By blakeyoung in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2008, 09:10 PM
  5. Changing File references based on cell value
    By CParnell in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2007, 12:55 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