+ Reply to Thread
Results 1 to 11 of 11

Row() replacement...

  1. #1
    Registered User
    Join Date
    04-15-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    6

    Row() replacement...

    I have a formula to get unique values from a column....Can anyone help me to re write with the funcations in attached file...

    Formula...
    =IF(ROW()-3>$B$22,"",VLOOKUP(ROW()-3,$B$4:$C$22,2,FALSE))

    Macro is not allowed...

    Appreciate any help.
    Attached Files Attached Files
    Last edited by NBVC; 04-16-2009 at 07:35 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Row() replacement...

    It would be good to see the data you are trying to apply the formula to also and how the current formula works with it.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-15-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Row() replacement...

    File attached...My_Excel_Issue.xls

    Please find the formula in "KM_Data_Model" sheet . Formula works fine in current sheet with Row()...but it need to be replaced with something else to make it work in my application.
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Row() replacement...

    How about?

    Please Login or Register  to view this content.
    copied down

  5. #5
    Registered User
    Join Date
    04-15-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Row() replacement...

    It worked well for other columns...but unable to get for column "D"..got circular ref related error...

    I modified the format bit now to separate year and month values...Can you please help me to get the unique data in "model" sheet..

    Thanks a lot.

    attached update file...
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Row() replacement...

    A little confused about what ultimately you want...

    I put this formula in H4, copied down

    Please Login or Register  to view this content.
    and the same formula in J2, but only changing the 2 in the Vlookup to 8 so that it looks at the correct column.

    Is that right or wrong?

    Did your ROW() formula work for your newly laid out data?

    If wrong, post the workbook showing expected results and why...

  7. #7
    Registered User
    Join Date
    04-15-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Row() replacement...

    Thanks for your help so far...

    Please find the attached files


    My_Excel_With_ROW_Function.xls : This is my original file with ROW() in Model sheet...

    My_Excel_With_Expected_WithOut_ROW.xls : Expected file without Row() or any other funcation which is not in the list provided earlier...In this file I want year and month in separate columns ( In Model Sheet) which I was not able to do...

    Appreciate your support...
    Attached Files Attached Files

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Row() replacement...

    This formula in H4:

    Please Login or Register  to view this content.
    this formula in J4:

    Please Login or Register  to view this content.
    both copied down as far as you want.

  9. #9
    Registered User
    Join Date
    04-15-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Row() replacement...

    I made small change (added separate column ..) to the file and it's working fine with your formula.... (It took more time to me to understand what you were doing )

    How can I Get the value "2007","2008" and "2009" into KM_Data_Model-Period_YY and months into KM_Data_Model - Period_MM.

    I have a Flag Column in KM_CS_Raw_data which will tell if it's a year or month....

    So Finally I need something like...

    Period_YY Period_MM
    2007 200809
    2008 ...
    2009 ....
    Attached Files Attached Files

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Row() replacement...

    This has gotten more complex than the original question asked.

    Why don't you split the data up in the Raw data sheet to make 2 separate columns for year and month and then use the same logic as before?

  11. #11
    Registered User
    Join Date
    04-15-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Row() replacement...

    Thanks for all your help. I will split in raw data sheet to finish my task....

+ 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