---
title: "villkor i Excel"
type: "forum-thread"
url: "https://www.webforum.nu/amne/kontorsprogram/109323-villkor-i-excel"
topic: "Kontorsprogram"
topic_url: "https://www.webforum.nu/amne/kontorsprogram"
author: "farsta_online"
published: "2004-08-16T06:36:45.000Z"
updated: "2004-08-16T08:08:03.000Z"
replies: 1
views: 215
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/kontorsprogram/109323-villkor-i-excel"
---

# villkor i Excel

## #1 — farsta_online, 2004-08-16T06:36Z

Hej, skulle behöva hjälp med följande

1. A2\>0 **AND**  B2\>0
     if true: B9 = c
     if False: B9 = d
2. A2\>0 **OR**  B2\>0
   if true: B9 = ce
     if False: B9 = df
3. A2 \>0  **AND**  B2\>0  **AND**  C2\>0
   if true: B9 = cc
     if False: B9 = dd
4. A2\>0 **OR**  B2\>0 **OR**  c2\>0
   if true: B9 = w
     if False: B9 = q

 

Tacksam för all hjälp
/Peter

Permalänk: https://www.webforum.nu/p/109323

## #2 — farsta_online, 2004-08-16T08:08Z

Lite förttydligande är kanske på sin plats:
Det jag vill åstadkomma ser i pseudokod ut som nedan:

```
If D8 = 100 AND 1.5 < D6/D8 < 25
Then  D8 = 100
else D8 = 250 AND 1.5 < D6/D8 < 25
Then D8 = 250
else
D8 = 500 AND 1.5 < D6/D8 < 25
then
D8 = 500
End If
```

 Intresserad av både VBA-lösningen och "Arbetsboklösningen"

Tacksam i förväg
/Peter

Permalänk: https://www.webforum.nu/p/1411243

---

Tråden på webben: https://www.webforum.nu/amne/kontorsprogram/109323-villkor-i-excel
