Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 493
Default Move rows with vlookup

Hi,
I have to change something in one of my projects (reports) and i think i am
going crazy, i really need your help.
I have a report with 2 worksheets.
In the first one i have columns for: acct#, acct name, address, phone.......
In the second worksheet i have again acct# (vlookup from first worksheet),
acct name (vlookup from first worksheet) and another 31 columns with days of
the month.
The sales rep will add in each day a number (how many hours they spend in
that day for that account).
So far so good. Now if an Sales rep is adding a new account in the first
worksheet, they have to arrange the accounts ascending (vlookup is working
just with ascending numbers) in the second worksheet will be a mess.
The acc # and acc name will be fine but the hours (numbers) will not match
anymore the correct accounts.
I need somehow to keep together the acc # + acc name + hours( the all row
with numbers for each account) after we add a new account and we rearrange
ascending all the accounts.
Please help.
Thanks,
Alex
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Move rows with vlookup

VLOOKUP() does not HAVE to have an ordered list to work with:

=VLOOKUP(C1,A1:B5,2,FALSE)
as a very simple example. The ,FALSE) parameter at the end says that the
lookup table's 1st column may or MAY NOT be ordered. With the ,FALSE) 4th
parameter, the table's first column does not have to be sorted.

So perhaps just rewriting the VLOOKUP formulas will do the job for you?

"Alex" wrote:

Hi,
I have to change something in one of my projects (reports) and i think i am
going crazy, i really need your help.
I have a report with 2 worksheets.
In the first one i have columns for: acct#, acct name, address, phone.......
In the second worksheet i have again acct# (vlookup from first worksheet),
acct name (vlookup from first worksheet) and another 31 columns with days of
the month.
The sales rep will add in each day a number (how many hours they spend in
that day for that account).
So far so good. Now if an Sales rep is adding a new account in the first
worksheet, they have to arrange the accounts ascending (vlookup is working
just with ascending numbers) in the second worksheet will be a mess.
The acc # and acc name will be fine but the hours (numbers) will not match
anymore the correct accounts.
I need somehow to keep together the acc # + acc name + hours( the all row
with numbers for each account) after we add a new account and we rearrange
ascending all the accounts.
Please help.
Thanks,
Alex

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 493
Default Move rows with vlookup

Hi,
You wright, VLOOKUP does not have to have an ordered list, the problem is -
i need (for many reasons) to have that list ordered ascending. Sorry my
mistake.
Can i insert a formula in this cells for hours (let say VLOOKUP) and still
the sales rep to add their numbers, even if a formula it is in that cell???
Thank you for your time.

"JLatham" wrote:

VLOOKUP() does not HAVE to have an ordered list to work with:

=VLOOKUP(C1,A1:B5,2,FALSE)
as a very simple example. The ,FALSE) parameter at the end says that the
lookup table's 1st column may or MAY NOT be ordered. With the ,FALSE) 4th
parameter, the table's first column does not have to be sorted.

So perhaps just rewriting the VLOOKUP formulas will do the job for you?

"Alex" wrote:

Hi,
I have to change something in one of my projects (reports) and i think i am
going crazy, i really need your help.
I have a report with 2 worksheets.
In the first one i have columns for: acct#, acct name, address, phone.......
In the second worksheet i have again acct# (vlookup from first worksheet),
acct name (vlookup from first worksheet) and another 31 columns with days of
the month.
The sales rep will add in each day a number (how many hours they spend in
that day for that account).
So far so good. Now if an Sales rep is adding a new account in the first
worksheet, they have to arrange the accounts ascending (vlookup is working
just with ascending numbers) in the second worksheet will be a mess.
The acc # and acc name will be fine but the hours (numbers) will not match
anymore the correct accounts.
I need somehow to keep together the acc # + acc name + hours( the all row
with numbers for each account) after we add a new account and we rearrange
ascending all the accounts.
Please help.
Thanks,
Alex

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Move rows with vlookup

You cannot type a number into a cell that has a formula without overwriting
the formula.


Gord Dibben MS Excel MVP

On Thu, 4 Mar 2010 06:40:05 -0800, Alex
wrote:

Hi,
You wright, VLOOKUP does not have to have an ordered list, the problem is -
i need (for many reasons) to have that list ordered ascending. Sorry my
mistake.
Can i insert a formula in this cells for hours (let say VLOOKUP) and still
the sales rep to add their numbers, even if a formula it is in that cell???
Thank you for your time.

"JLatham" wrote:

VLOOKUP() does not HAVE to have an ordered list to work with:

=VLOOKUP(C1,A1:B5,2,FALSE)
as a very simple example. The ,FALSE) parameter at the end says that the
lookup table's 1st column may or MAY NOT be ordered. With the ,FALSE) 4th
parameter, the table's first column does not have to be sorted.

So perhaps just rewriting the VLOOKUP formulas will do the job for you?

"Alex" wrote:

Hi,
I have to change something in one of my projects (reports) and i think i am
going crazy, i really need your help.
I have a report with 2 worksheets.
In the first one i have columns for: acct#, acct name, address, phone.......
In the second worksheet i have again acct# (vlookup from first worksheet),
acct name (vlookup from first worksheet) and another 31 columns with days of
the month.
The sales rep will add in each day a number (how many hours they spend in
that day for that account).
So far so good. Now if an Sales rep is adding a new account in the first
worksheet, they have to arrange the accounts ascending (vlookup is working
just with ascending numbers) in the second worksheet will be a mess.
The acc # and acc name will be fine but the hours (numbers) will not match
anymore the correct accounts.
I need somehow to keep together the acc # + acc name + hours( the all row
with numbers for each account) after we add a new account and we rearrange
ascending all the accounts.
Please help.
Thanks,
Alex


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort rows and move borders with rows [email protected] New Users to Excel 1 June 4th 09 07:36 AM
vlookup, move down a row frkryr Excel Discussion (Misc queries) 0 August 29th 08 10:34 AM
how do i vlookup and move down a cell as well. donkey brain Excel Discussion (Misc queries) 2 March 24th 06 05:21 PM
How do I move up rows below blank rows in an address? goggem Excel Worksheet Functions 0 May 17th 05 04:01 AM
Move rows to columns Daniell Excel Worksheet Functions 2 March 24th 05 11:51 PM


All times are GMT +1. The time now is 11:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"