Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Excel Conditional Formula Request

Posted on 2013-02-07
11
337 Views
Last Modified: 2013-02-07
Hello Experts,

Can someone please assist me in writing a formula that will do the following:

In cell G3 if cell D3 is > 4 but less than 20 then insert the following character v
In cell H3 if cell D3 is >21 but less than 50 then insert the following character v
In cell I3 if cell D3 is > 51 insert the following character v
In cell J3 if cell D3 is greater than 1 but less than 4 then insert the following character v


Your help will greatly appreciated.

Regards

Carlton
AMALGAMATION.xlsx
0
Comment
Question by:cpatte7372
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 16

Accepted Solution

by:
terencino earned 167 total points
ID: 38863154
Does this work for you Carlton?
...Terry
AMALGAMATION.xlsx
0
 
LVL 16

Expert Comment

by:terencino
ID: 38863158
You might want to consider using "greater than or equal to" expressions to cover the ones that fall through the gaps. Can easily update the formulas to suit
...Terry
0
 
LVL 50

Assisted Solution

by:Ingeborg Hawighorst
Ingeborg Hawighorst earned 167 total points
ID: 38863159
Hello

>> In cell G3 if cell D3 is > 4 but less than 20 then insert the following character v
=IF(AND(D3>4,D3<20),"v","")

>>In cell H3 if cell D3 is >21 but less than 50 then insert the following character v
=IF(AND(D3>21,D3<50),"v","")

>>In cell I3 if cell D3 is > 51 insert the following character v
=IF(D3>51,"v","")

>>In cell J3 if cell D3 is greater than 1 but less than 4 then insert the following character v
=IF(AND(D3>1,D3<4),"v","")

cheers, teylyn
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 16

Expert Comment

by:terencino
ID: 38863165
Here is the update to include ">="
AMALGAMATION.xlsx
0
 

Assisted Solution

by:SimonFrance
SimonFrance earned 166 total points
ID: 38863173
In G3 put =IF(D3>=4,IF(D3<=20,"V",""),"")
In H3 put =IF(D3>=21,IF(D3<=50,"V",""),"")
In I3 put =IF(D3>=51,"V","")
In J3 put =IF(D3>=1,IF(D3<=4,"V",""),"")

The attached has got the formulas included (you'll just need to fill down).
amalgamation.xlsx
0
 

Author Comment

by:cpatte7372
ID: 38863218
Thanks experts,

Is it possible to make excel recognise a character as a number? For example, the values in the formulas you suggested will be 'V'. I would Excel to recognise 'V' as the value number 1, so that I can total the 'V's.

I hope that makes sense
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 38863229
You can use Countif() to count the "v"s

=COUNTIF(G:G,"v")

Or replace the "v" with a 1, then you can sum the results. So, instead of...

=IF(AND(D3>4,D3<20),"v","")

... use

=IF(AND(D3>4,D3<20),1,0)
0
 
LVL 16

Expert Comment

by:terencino
ID: 38863239
or in D1 use =COUNTIF(D3:D142,"V")
0
 

Author Comment

by:cpatte7372
ID: 38863355
Experts,

Thanks it worked like a dream.

I'm not sure who to assign the points to???
0
 
LVL 16

Expert Comment

by:terencino
ID: 38863392
Just feel free to split appropriately to all those who contributed to your solution Carlton, we're all happy to help
0
 

Author Closing Comment

by:cpatte7372
ID: 38863556
Thank you all very much.

Appreciate it.

Cheers
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question