• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

search in reference sheet for value,copy row into ref-sheet, if value not found.

emsieg

New Member
Hi,

i have 2 open sheets, one called bookings, and other is called reference.

in booking i add in the first column a value which i search in reference.

Some customers are new, so does not appear in reference and the value in column A is invalid.

In such a case, this row(with new customer) needs to be added at the end of reference(except several columns)and reference needs to be saved with filename-date-time.xlsx.


I´m not too deep in macro and it took me quite a while to search in reference.


I already found a way to save the sheet, but it saves active sheet, where i run the macro, not the reference sheet.


Any idea how i could add new customers into reference sheet and autosave it after addition of new values?


regards
 
Hi, emsieg!


First of all welcome to Chandoo's website Excel forums. Thank you for your joining us and glad to have you here.


As a starting point I'd recommend you to read the green sticky topics at this forums main page. There you'll find general guidelines about how this site and community operates (introducing yourself, posting files, netiquette rules, and so on).


Among them you're prompted to perform searches within this site before posting, because maybe your question had been answered yet.


Feel free to play with different keywords so as to be led thru a wide variety of articles and posts, and if you don't find anything that solves your problem or guides you towards a solution, you'll always be welcome back here. Tell us what you've done, consider uploading a sample file as recommended, and somebody surely will read your post and help you.


And about questions in general...


If you haven't performed yet the search herein, try going to the topmost right zone of this page (Custom Search), type the keywords used in Tags field when creating the topic or other proper words and press Search button. You'd retrieve many links from this website, like the following one(s) -if any posted below-, maybe you find useful information and even the solution. If not please advise so as people who read it could get back to you as soon as possible.


And about this question in particular...


Would you please clarify these points?

a) You have 2 open sheets, each one from a different workbook or both from same?

b) Where in the reference worksheet is located the search column, and what type of data it has, string, numeric, date?

c) "Except several columns" doesn't describe anything useful, please elaborate.

d) Which method have you found that saves "the sheet" (just one, reference worksheets, not bookings?


As you could see there are a lot of missing definitions, so please consider uploading a sample file (including manual examples of desired output if applicable), it'd be very useful for those who read this and might be able to help you. Thank you. Give a look at the green sticky posts at this forums main page for uploading guidelines.


Regards!
 
Back
Top