Solved

Excel Conditional Formula Request

Posted on 2013-02-07
11
331 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

809 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