Hi,
I need to be able to
1) find the last filled cell in the row
2) replace the value in that cell with a certain text ("YES")
I am not sure where to start and what formula/function to apply.
Could you please help?
Thank you!
A_K
Hi,
I need to be able to
1) find the last filled cell in the row
2) replace the value in that cell with a certain text ("YES")
I am not sure where to start and what formula/function to apply.
Could you please help?
Thank you!
A_K
To find the last used cell in a range(example A1:M1)-row, you can use something like this.
=LOOKUP(2,1/(A1:M1<>""),A1:M1)
I don't think that you could replace the value in a cell using formulas. Maybe with VBA...
Regards
Fotis.
-This is my Greek whisper to Europe.
--Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Advanced Excel Techniques: http://excelxor.com/
--KISS(Keep it simple Stupid)
--Bring them back.
---See about Acropolis of Athens.
--Visit Greece.
Is this one row or multiple rows in the file?1) find the last filled cell in the row
If I have helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
Hi,
There are multiple (2000) rows in a file. And the last cell is different for each column.
Try this code
Copy the Excel VBA code![]()
Please Login or Register to view this content.
Select the workbook in which you want to store the Excel VBA code
Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
Choose Insert | Module
Where the cursor is flashing, choose Edit | Paste
To run the Excel VBA code:
Choose View | Macros
Select a macro in the list, and click the Run button
Thank you so much, Arlu!
This worked!~
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks