+ Reply to Thread
Results 1 to 4 of 4

Help - Easy Q not sure if need IF or LOOKUP

Hybrid View

  1. #1
    Registered User
    Join Date
    03-23-2004
    Location
    Dallas
    Posts
    1

    Help - Easy Q not sure if need IF or LOOKUP

    Hi guys!

    I need a formula that does this:

    OK I'm going to draw a spreadsheet
    ......A..........B......
    1..100.....dog....
    2..150...<blank>
    3..200......cat.....

    so all I want is a formula that looks in Column B and if there is ANY text at all, returns the value in Column A

    So I want it to look into B1 and it will see text there and return "100", but if it looks in B2 and sees that it is blank, it just won't return anything.

    Can I do this? Seems like it would be a combination of IF and LOOKUP or something.

    Thank you.

  2. #2
    Registered User
    Join Date
    05-03-2005
    Posts
    11
    Hi Bran,

    put the data you have in column A into column C and enter the following formula in A1

    =IF(B1="","",C1)

    copy it down to A2 & A3

    Stuart

  3. #3
    CLR
    Guest

    Re: Help - Easy Q not sure if need IF or LOOKUP

    In C1 put this formula and copy down........

    =IF(B1="","",A1)

    or

    =IF(ISTEXT(B1),A1,"")

    Vaya con Dios,
    Chuck, CABGx3




    "Bran987" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi guys!
    >
    > I need a formula that does this:
    >
    > OK I'm going to draw a spreadsheet
    > .....A..........B......
    > 1..100.....dog....
    > 2..150...<blank>
    > 3..200......cat.....
    >
    > so all I want is a formula that looks in Column B and if there is ANY
    > text at all, returns the value in Column A
    >
    > So I want it to look into B1 and it will see text there and return
    > "100", but if it looks in B2 and sees that it is blank, it just won't
    > return anything.
    >
    > Can I do this? Seems like it would be a combination of IF and LOOKUP
    > or something.
    >
    > Thank you.
    >
    >
    > --
    > Bran987
    > ------------------------------------------------------------------------
    > Bran987's Profile:

    http://www.excelforum.com/member.php...fo&userid=7503
    > View this thread: http://www.excelforum.com/showthread...hreadid=375853
    >




  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    I am confused as to why you wish to do this.

    If you wish a list of numbers which have entries in column B would you not sort over column B and block-delete all rows with a blank column B, then delete column B, and re-sort (if required) over column A.

    If, in fact, you wish to use this data as a lookup-range to update data on a different sheet, then:
    assuming you are using the numbers in column A as the lookup value, the lookup would read something like
    =IF(ISNA(VLOOKUP(a1,looktable,1,FALSE)),"Missing "&a1,IF(VLOOKUP(B5,looktable,2)="","",a1))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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