#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default conditional formula

I am doing a spreadsheet for purchases. I want to have a formula to make
sure that the user spells the vendor's name correctly. If the vendor name is
spelled correctly, the purchase will go into one column and if it is
misspelled, then the purchase will go into a different column. I created an
IF formula that includes an INDEX to my list of vendors. The logic is there,
but the formula is not working.

=IF(E30=INDEX(Q27:Q33,,R38)," ",F30)
--
Karen Hunter
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default conditional formula

Karen,

I couldn't quite figure out what your formula was trying to do so a
different approach.

=IF(ISERROR(VLOOKUP(E30,Q27:Q30,1,FALSE)),"Custome r name not in
database","Customer Found")

Checks cell E30 for the Customer name and validates it in your database
(Q27:Q30?) with a suitable message if the Customer name isn't found.

Mike

"Karen Hunter" wrote:

I am doing a spreadsheet for purchases. I want to have a formula to make
sure that the user spells the vendor's name correctly. If the vendor name is
spelled correctly, the purchase will go into one column and if it is
misspelled, then the purchase will go into a different column. I created an
IF formula that includes an INDEX to my list of vendors. The logic is there,
but the formula is not working.

=IF(E30=INDEX(Q27:Q33,,R38)," ",F30)
--
Karen Hunter

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default conditional formula

Use

=IF(ISNUMBER(MATCH(E30,$Q$27:$Q$33,0))R38,F30)

why don't you just use validation and prevent misspelling


--
Regards,

Peo Sjoblom



"Karen Hunter" wrote in message
...
I am doing a spreadsheet for purchases. I want to have a formula to make
sure that the user spells the vendor's name correctly. If the vendor name
is
spelled correctly, the purchase will go into one column and if it is
misspelled, then the purchase will go into a different column. I created
an
IF formula that includes an INDEX to my list of vendors. The logic is
there,
but the formula is not working.

=IF(E30=INDEX(Q27:Q33,,R38)," ",F30)
--
Karen Hunter



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default conditional formula

Thank you! I never even thought of that. I know how to do that in Access,
but forgot about it in Excel!
--
Karen Hunter


"Peo Sjoblom" wrote:

Use

=IF(ISNUMBER(MATCH(E30,$Q$27:$Q$33,0))R38,F30)

why don't you just use validation and prevent misspelling


--
Regards,

Peo Sjoblom



"Karen Hunter" wrote in message
...
I am doing a spreadsheet for purchases. I want to have a formula to make
sure that the user spells the vendor's name correctly. If the vendor name
is
spelled correctly, the purchase will go into one column and if it is
misspelled, then the purchase will go into a different column. I created
an
IF formula that includes an INDEX to my list of vendors. The logic is
there,
but the formula is not working.

=IF(E30=INDEX(Q27:Q33,,R38)," ",F30)
--
Karen Hunter




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default conditional formula

Thank you so much. That works beautifully! We have been trying to figure
this out for days. We knew there was a way to do it, we were just going the
wrong way.
--
Karen Hunter


"Mike H" wrote:

Karen,

I couldn't quite figure out what your formula was trying to do so a
different approach.

=IF(ISERROR(VLOOKUP(E30,Q27:Q30,1,FALSE)),"Custome r name not in
database","Customer Found")

Checks cell E30 for the Customer name and validates it in your database
(Q27:Q30?) with a suitable message if the Customer name isn't found.

Mike

"Karen Hunter" wrote:

I am doing a spreadsheet for purchases. I want to have a formula to make
sure that the user spells the vendor's name correctly. If the vendor name is
spelled correctly, the purchase will go into one column and if it is
misspelled, then the purchase will go into a different column. I created an
IF formula that includes an INDEX to my list of vendors. The logic is there,
but the formula is not working.

=IF(E30=INDEX(Q27:Q33,,R38)," ",F30)
--
Karen Hunter

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
CONDITIONAL FORMULA SSJ New Users to Excel 7 November 15th 06 06:03 PM
Conditional Formula rdaled Excel Discussion (Misc queries) 2 August 16th 06 05:23 PM
Conditional Formula to indicate Formula in cell SteveW New Users to Excel 9 August 2nd 06 01:12 AM
Conditional Sum Formula? Boulder257 Excel Discussion (Misc queries) 1 January 25th 06 05:06 PM
conditional formula thanks Excel Worksheet Functions 2 April 14th 05 10:06 PM


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