Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Macro to insert formula result into range with zero values in cell

I have a column with possible Values A thru F for example. I need to insert
any of A thru F (whatever is there) into another range where there are cells
equal to zero in that range (column). There can only be one copy of A thru F
in the new range. Please help if you can, I am blocked on this project. I
appreciate any help given. If this is more appropriate in worksheet
functions, please advise. Posted only in programming.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 230
Default Macro to insert formula result into range with zero values in cell

I am having trouble visualizing what you are doing. Can you explain it a bit
clearer?


"JPS" wrote in message
...
I have a column with possible Values A thru F for example. I need to
insert
any of A thru F (whatever is there) into another range where there are
cells
equal to zero in that range (column). There can only be one copy of A
thru F
in the new range. Please help if you can, I am blocked on this project.
I
appreciate any help given. If this is more appropriate in worksheet
functions, please advise. Posted only in programming.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Macro to insert formula result into range with zero values in

I hope this helps. I have finally derived a 31 row column of
percussion/instruments/vocals that I use weekly for a large music production.
I have compared them to last weeks list and they have been matched in the
same location/row number that they occupied last week so that the musical
instrument cabling doesn't change if the musical instrument is being used
again this week. So I now have another column of musical instruments,
vocalists and percussion instruments that are being used this week that are
in need of placement. Row numbers 1-18 are percussion, row 19-24 are
instruments, and rows 25-31 are vocals. The extras for the week have been
identified as percussion, instrument, and vocal. Now I need to put them
where they belong with some overlap if needed, ie, row 1-19 could be
percussion, or row 18-26 could be instruments.

I finally derived this formula to get rid of the #N/A that was coming up in
my vlookup when I would get no hit/match
=IF(ISNA(VLOOKUP($H2,$F$2:$G$50,2,0)),0,VLOOKUP($H 2,$F$2:$G$50,2,0))
I end up with cells containing zero where I am not using what was used last
week.

"William Benson" wrote:

I am having trouble visualizing what you are doing. Can you explain it a bit
clearer?


"JPS" wrote in message
...
I have a column with possible Values A thru F for example. I need to
insert
any of A thru F (whatever is there) into another range where there are
cells
equal to zero in that range (column). There can only be one copy of A
thru F
in the new range. Please help if you can, I am blocked on this project.
I
appreciate any help given. If this is more appropriate in worksheet
functions, please advise. Posted only in programming.

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Macro to insert formula result into range with zero values in

Is this better

=IF(ISNA(VLOOKUP($H2,$F$2:$G$50,2,0)),"",VLOOKUP($ H2,$F$2:$G$50,2,0))


--
HTH

Bob Phillips

"JPS" wrote in message
...
I hope this helps. I have finally derived a 31 row column of
percussion/instruments/vocals that I use weekly for a large music

production.
I have compared them to last weeks list and they have been matched in the
same location/row number that they occupied last week so that the musical
instrument cabling doesn't change if the musical instrument is being used
again this week. So I now have another column of musical instruments,
vocalists and percussion instruments that are being used this week that

are
in need of placement. Row numbers 1-18 are percussion, row 19-24 are
instruments, and rows 25-31 are vocals. The extras for the week have been
identified as percussion, instrument, and vocal. Now I need to put them
where they belong with some overlap if needed, ie, row 1-19 could be
percussion, or row 18-26 could be instruments.

I finally derived this formula to get rid of the #N/A that was coming up

in
my vlookup when I would get no hit/match
=IF(ISNA(VLOOKUP($H2,$F$2:$G$50,2,0)),0,VLOOKUP($H 2,$F$2:$G$50,2,0))
I end up with cells containing zero where I am not using what was used

last
week.

"William Benson" wrote:

I am having trouble visualizing what you are doing. Can you explain it a

bit
clearer?


"JPS" wrote in message
...
I have a column with possible Values A thru F for example. I need to
insert
any of A thru F (whatever is there) into another range where there

are
cells
equal to zero in that range (column). There can only be one copy of A
thru F
in the new range. Please help if you can, I am blocked on this

project.
I
appreciate any help given. If this is more appropriate in worksheet
functions, please advise. Posted only in programming.

Thanks






  #5   Report Post  
Posted to microsoft.public.excel.programming
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Macro to insert formula result into range with zero values in

Bob,

Thank-you, but problem wasn't with the formula. I do want the zero instead
of the #n/a. The issue is inserting the extra unplaced instruments mentioned
above in the cells egual to zero. Can you help with that?

JPS

"Bob Phillips" wrote:

Is this better

=IF(ISNA(VLOOKUP($H2,$F$2:$G$50,2,0)),"",VLOOKUP($ H2,$F$2:$G$50,2,0))


--
HTH

Bob Phillips

"JPS" wrote in message
...
I hope this helps. I have finally derived a 31 row column of
percussion/instruments/vocals that I use weekly for a large music

production.
I have compared them to last weeks list and they have been matched in the
same location/row number that they occupied last week so that the musical
instrument cabling doesn't change if the musical instrument is being used
again this week. So I now have another column of musical instruments,
vocalists and percussion instruments that are being used this week that

are
in need of placement. Row numbers 1-18 are percussion, row 19-24 are
instruments, and rows 25-31 are vocals. The extras for the week have been
identified as percussion, instrument, and vocal. Now I need to put them
where they belong with some overlap if needed, ie, row 1-19 could be
percussion, or row 18-26 could be instruments.

I finally derived this formula to get rid of the #N/A that was coming up

in
my vlookup when I would get no hit/match
=IF(ISNA(VLOOKUP($H2,$F$2:$G$50,2,0)),0,VLOOKUP($H 2,$F$2:$G$50,2,0))
I end up with cells containing zero where I am not using what was used

last
week.

"William Benson" wrote:

I am having trouble visualizing what you are doing. Can you explain it a

bit
clearer?


"JPS" wrote in message
...
I have a column with possible Values A thru F for example. I need to
insert
any of A thru F (whatever is there) into another range where there

are
cells
equal to zero in that range (column). There can only be one copy of A
thru F
in the new range. Please help if you can, I am blocked on this

project.
I
appreciate any help given. If this is more appropriate in worksheet
functions, please advise. Posted only in programming.

Thanks








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 106
Default Macro to insert formula result into range with zero values in

Do you mean that you want to be able to add more instruments to the second
list but only as long as they aren't already there? A "unique" approach that
doesn't allow duplicate instruments on the second column?

"JPS" wrote:

Bob,

Thank-you, but problem wasn't with the formula. I do want the zero instead
of the #n/a. The issue is inserting the extra unplaced instruments mentioned
above in the cells egual to zero. Can you help with that?

JPS

"Bob Phillips" wrote:

Is this better

=IF(ISNA(VLOOKUP($H2,$F$2:$G$50,2,0)),"",VLOOKUP($ H2,$F$2:$G$50,2,0))


--
HTH

Bob Phillips

"JPS" wrote in message
...
I hope this helps. I have finally derived a 31 row column of
percussion/instruments/vocals that I use weekly for a large music

production.
I have compared them to last weeks list and they have been matched in the
same location/row number that they occupied last week so that the musical
instrument cabling doesn't change if the musical instrument is being used
again this week. So I now have another column of musical instruments,
vocalists and percussion instruments that are being used this week that

are
in need of placement. Row numbers 1-18 are percussion, row 19-24 are
instruments, and rows 25-31 are vocals. The extras for the week have been
identified as percussion, instrument, and vocal. Now I need to put them
where they belong with some overlap if needed, ie, row 1-19 could be
percussion, or row 18-26 could be instruments.

I finally derived this formula to get rid of the #N/A that was coming up

in
my vlookup when I would get no hit/match
=IF(ISNA(VLOOKUP($H2,$F$2:$G$50,2,0)),0,VLOOKUP($H 2,$F$2:$G$50,2,0))
I end up with cells containing zero where I am not using what was used

last
week.

"William Benson" wrote:

I am having trouble visualizing what you are doing. Can you explain it a

bit
clearer?


"JPS" wrote in message
...
I have a column with possible Values A thru F for example. I need to
insert
any of A thru F (whatever is there) into another range where there

are
cells
equal to zero in that range (column). There can only be one copy of A
thru F
in the new range. Please help if you can, I am blocked on this

project.
I
appreciate any help given. If this is more appropriate in worksheet
functions, please advise. Posted only in programming.

Thanks






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
SUMIF result including values not specified in sum-range evans.notch.cabin Excel Worksheet Functions 3 January 30th 09 08:13 PM
How do I compare a result to a range of values? UnisourceforNPH Excel Worksheet Functions 6 June 12th 07 08:09 PM
Macro to insert a formula based on a range MarcusA Excel Discussion (Misc queries) 1 December 8th 06 09:26 AM
Range of Values Returns One Result Rif Excel Worksheet Functions 2 September 30th 06 12:04 PM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Excel Programming 1 July 8th 03 03:03 PM


All times are GMT +1. The time now is 05:40 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"